@php function truncate_string($string, $limit = 80) { return mb_strlen($string, 'UTF-8') > $limit ? mb_substr($string, 0, $limit) . '...' : $string; } @endphp
# | {{ __('contract.data.customer') }} | {{ __('contract.data.start_date') }} | {{ __('contract.data.end_date') }} | {{ __('contract.title.technicians') }} | {{ __('contract.data.status') }} | {{ __('buttons.actions') }} |
---|---|---|---|---|---|---|
{{ ++$index }} | {{ $contract->customer->name }} | {{ $contract->startdate }} | {{ $contract->enddate }} | {{ truncate_string(implode(', ', $contract->technicianNames())) }} | {{ $contract->status == 1 ? __('contract.status.active') : ($contract->status == 0 ? __('contract.status.finalized') : __('contract.status.to_finalize')) }} | {{ __('buttons.show') }} @can('write_order') {{ __('buttons.edit') }} {{ __('buttons.delete') }} {{ __('buttons.renew') }} {{-- {{ __('contract.title.contract') }}--}} Plan de rotación Areas de oportunidad @endcan |