@component('backoffice._layouts.app', [ 'title' => $model->name ?: 'New office' ]) {{ html() ->modelForm($model, 'PATCH', action('Backoffice\OfficesController@update', $model->id)) ->open() }} @component('backoffice._components.pageHeading', ['breadcrumb' => html()->backToIndex('Backoffice\OfficesController@index')]) {{ html()->publishedIndicator($model->published_at) }} {{ $model->name ?: 'New office' }} @slot('actions') {{ html()->viewLargeButton($model->path()) }} @endslot @endcomponent
@component('backoffice._components.tabs', ['items' => ['Content', 'Meta']]) @include('backoffice.offices._partials.form') @endcomponent
{{ html()->status() }} @component('backoffice._components.tabs', ['items' => ['Params','Activity']]) @component('backoffice._components.tab', ['item' => 'Params', 'active' => true]) {{ html()->formGroup()->belongsTo('contact_id', 'Contact', 'Human', 'last_name') }} {{ html()->formGroup()->belongsToMany('contact', 'Contact(s)', 'Human', 'last_name', 'OfficeHumanType' ,'last_name', 'ASC') }} @endcomponent @component('backoffice._components.tab', ['item' => 'Activity']) @include('backoffice._layouts._partials.activityLogs') @endcomponent @endcomponent
{{ html()->closeModelForm() }} @endcomponent