@section('header', __($title)) @livewire('dropdown-filter', [ 'filterTemplate' => 'livewire.contracts.filter', 'modelClass' => $this->route !== 'client' ? App\Filters\Contracts\SupplierFilter::class : App\Filters\Contracts\ClientFilter::class, 'htmlContent' => [ 'component' => 'created', 'route' => 'openModal', 'button' => true, 'name' => $titleCreated, ], ]) @if (session()->has('message'))
{{ session('message') }}
@endif
@livewire('access.menu-list-component')
@if (!$contracts->isEmpty()) @if ($this->route != 'client') @endif @endif @foreach ($fields as $field => $info) @foreach ($contracts as $item) @if ($this->route != 'client') @endif @foreach ($fields as $field => $info) @endforeach @endforeach
@if ($info['name'] === 'Job title') {{ __('Company employees') }} @else {{ __($info['name']) }} @endif @endforeach
{{ $loop->iteration }} @can('edit', $item) @endcan @can('delete', $item) @endcan @if ($field == 'job_title') {!! showCompanyEmployeeContacts($item->company) !!} @else {!! $item->$field !!} @endif
@include('livewire.contracts.form') {{ __('Delete record') }} @if (session()->has('error')) {{ session('error') }} @endif {{ __('Are you sure you would like to delete this record?') }} {{ __('Close') }} {{ __('Delete') }}