@extends('layouts.app') @section('title', 'Clientele List') @section('content')

Clientele List

@if( Auth::user()->hasPermissionTo('manage clientele') ) @endif
@if ( $clienteles->isEmpty() )

- N/A -

@else
{!! $clienteles->links() !!}
@if( Auth::user()->hasPermissionTo('manage clientele') || Auth::user()->hasPermissionTo('manage quotation') ) @endif @foreach ($clienteles as $index => $clientele) {{-- --}} {{-- --}} @if( Auth::user()->hasPermissionTo('manage quotation') ) @elseif( Auth::user()->hasPermissionTo('manage clientele') ) @endif @endforeach
No Code Prefix Clientele Name Company Name Tags Duration Work CountQuotationsStatus 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() }} {{ $clientele->clienteleQuotations->count() }} {{ $clientele->clienteleQuotations->count() }} {{ $clientele->active ? 'Active' : 'Inactive' }} @if( Auth::user()->hasPermissionTo('manage clientele') ) @else @endif
{!! $clienteles->links() !!}
@endif
@endsection @push('modal') @endpush @push('js') @endpush