Clientele List
@if ( $clienteles->isEmpty() )
- N/A -
@else
{!! $clienteles->links() !!}
| No | Code | Prefix | Clientele Name | Company Name | Tags | Duration | Work Count | @if( Auth::user()->hasPermissionTo('manage clientele') || Auth::user()->hasPermissionTo('manage quotation') )Quotations | @endifStatus | Action | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $index + $clienteles->firstItem() }} | {{ $clientele->code?? '-' }} | {{ $clientele->prefix?? '-' }} | {{ (strlen($clientele->name) > 20) ? substr($clientele->name, 0, 20) . '...' : $clientele->name }} | {{--{{ $clientele->name }} | --}}{{-- | {{ (strlen($clientele->company_name) > 20) ? substr($clientele->company_name, 0, 20) . '...' : $clientele->company_name }} | --}}{{ $clientele->company_name }} | @if( $clientele->getWorkTags() ) @foreach ($clientele->getWorkTags() as $key => $tag) {{ $tag }} @endforeach @else N/A @endif |
@if( $clientele->getWorkDurations() )
@foreach ($clientele->getWorkDurations() as $key => $duration)
{{ $duration['Y-m'] }}
@endforeach @else N/A @endif |
{{ $clientele->clienteleWorks->count() }} | @if( Auth::user()->hasPermissionTo('manage quotation') ){{ $clientele->clienteleQuotations->count() }} | @elseif( Auth::user()->hasPermissionTo('manage clientele') ){{ $clientele->clienteleQuotations->count() }} | @endif{{ $clientele->active ? 'Active' : 'Inactive' }} | @if( Auth::user()->hasPermissionTo('manage clientele') ) @else @endif |
{!! $clienteles->links() !!}
@endif