<commit_before>@extends('laravel-enso/core::layouts.app')

@section('pageTitle', __('Entities'))

@section('content')

    <section class="content-header">
        @can('access-route', 'administration.owners.create')
            <a class="btn btn-primary" href="/administration/owners/create">
                {{ __("Create Entity") }}
            </a>
        @endcan
        @include('laravel-enso/menumanager::breadcrumbs')
    </section>
    <section class="content">
        <div class="row" v-cloak>
            <div class="col-xs-12 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2">
                <div class="box box-primary">
                    <div class="box-header with-border" style="text-align:center">
                        <div class="box-title">
                            {{ __("Edit") }}
                        </div>
                        <div class="box-tools pull-right">
                            <button class="btn btn-box-tool" data-widget="collapse">
                                <i class="fa fa-minus">
                                </i>
                            </button>
                        </div>
                    </div>
                    <div class="box-body">
                        {!! Form::model($owner, ['method' => 'PATCH', 'url' => '/administration/owners/'.$owner->id]) !!}
                        <div class="row">
                            @include('laravel-enso/core::administration.owners.form')
                            <div class="col-sm-6">
                                <div class="form-group{{ $errors->has('roles_list') ? ' has-error' : '' }}">
                                    {!! Form::label('roles_list', __('Roles')) !!}
                                    <small class="text-danger" style="float:right;">
                                        {{ $errors->first('roles_list') }}
                                    </small>
                                    {!! Form::select('roles_list[]', $roles, null, ['class' => 'form-control select', 'multiple' => 'multiple']) !!}
                                </div>
                            </div>
                        </div>
                        <center>
                            {!! Form::submit(__("Save"), ['class' => 'btn btn-primary']) !!}
                        </center>
                        {!! Form::close() !!}
                    </div>
                </div>

                @if(!is_null(config('comments.commentables.owner')))
                    <comments-manager :id="{{ $owner->id }}"
                        type="owner"
                        v-if="{{ $owner }}"
                        edited-label="{{ __("edited") }}">
                    </comments-manager>
                @endif
                @if(!is_null(config('documents.documentables.owner')))
                    <documents-manager :id="{{ $owner->id }}"
                        :file-size-limit="5000000"
                        type="owner"
                        v-if="{{ $owner }}">
                    </documents-manager>
                @endif

            </div>
        </div>
    </section>

@endsection

@push('scripts')

    <script>

        const vm = new Vue({<commit_msg>removed unused prop<commit_after>@extends('laravel-enso/core::layouts.app')

@section('pageTitle', __('Entities'))

@section('content')

    <section class="content-header">
        @can('access-route', 'administration.owners.create')
            <a class="btn btn-primary" href="/administration/owners/create">
                {{ __("Create Entity") }}
            </a>
        @endcan
        @include('laravel-enso/menumanager::breadcrumbs')
    </section>
    <section class="content">
        <div class="row" v-cloak>
            <div class="col-xs-12 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2">
                <div class="box box-primary">
                    <div class="box-header with-border" style="text-align:center">
                        <div class="box-title">
                            {{ __("Edit") }}
                        </div>
                        <div class="box-tools pull-right">
                            <button class="btn btn-box-tool" data-widget="collapse">
                                <i class="fa fa-minus">
                                </i>
                            </button>
                        </div>
                    </div>
                    <div class="box-body">
                        {!! Form::model($owner, ['method' => 'PATCH', 'url' => '/administration/owners/'.$owner->id]) !!}
                        <div class="row">
                            @include('laravel-enso/core::administration.owners.form')
                            <div class="col-sm-6">
                                <div class="form-group{{ $errors->has('roles_list') ? ' has-error' : '' }}">
                                    {!! Form::label('roles_list', __('Roles')) !!}
                                    <small class="text-danger" style="float:right;">
                                        {{ $errors->first('roles_list') }}
                                    </small>
                                    {!! Form::select('roles_list[]', $roles, null, ['class' => 'form-control select', 'multiple' => 'multiple']) !!}
                                </div>
                            </div>
                        </div>
                        <center>
                            {!! Form::submit(__("Save"), ['class' => 'btn btn-primary']) !!}
                        </center>
                        {!! Form::close() !!}
                    </div>
                </div>

                @if(!is_null(config('comments.commentables.owner')))
                    <comments-manager :id="{{ $owner->id }}"
                        type="owner"
                        v-if="{{ $owner }}">
                    </comments-manager>
                @endif
                @if(!is_null(config('documents.documentables.owner')))
                    <documents-manager :id="{{ $owner->id }}"
                        :file-size-limit="5000000"
                        type="owner"
                        v-if="{{ $owner }}">
                    </documents-manager>
                @endif

            </div>
        </div>
    </section>

@endsection

@push('scripts')

    <script>

        const vm = new Vue({
{'fraction_non_alphanumeric': 0.16073657927590512, 'fraction_numerical': 0.0046816479400749065, 'mean_word_length': 1.1006227466404457, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5041302', 'n_tokens_mistral': 1671, 'n_tokens_neox': 1557, 'n_words': 255}