Back
Customers
@foreach($customers as $customer) @if(isset($filter['customer_id']) && in_array($customer->id,$filter['customer_id']))
{{$customer->first_name}}
@else
{{$customer->first_name}}
@endif @endforeach
Employees
@foreach($employees as $employee) @if(isset($filter['employee_id']) && in_array($employee->id,$filter['employee_id']))
{{$employee->first_name}}
@else
{{$employee->first_name}}
@endif @endforeach
Services
@foreach($services as $Service) @if(isset($filter['services_ids']) && in_array($Service->id,$filter['services_ids']))
{{$Service->name}} ({{$Service->service_code}})
@else
{{$Service->name}} ({{$Service->service_code}})
@endif @endforeach
Status
Complete
Pending
Client Type
@foreach($client_type as $type) @if(isset($filter['type_id']) && in_array($type->id,$filter['type_id']))
{{$type->name}}
@else
{{$type->name}}
@endif @endforeach
Crew Type
@foreach($crew_type as $type) @if(isset($filter['crew_id']) && in_array($type->id,$filter['crew_id']))
{{$type->name}}
@else
{{$type->name}}
@endif @endforeach
Cluster
@foreach($clusters as $cluster) @if(isset($filter['cluster_id']) && in_array($cluster->id,$filter['cluster_id']))
{{$cluster->name}}
@else
{{$cluster->name}}
@endif @endforeach
@csrf
@if(isset($filter['customer_id'])) @foreach($filter['customer_id'] as $row)
@endforeach @endif @if(isset($filter['type_id'])) @foreach($filter['type_id'] as $row2)
@endforeach @endif @if(isset($filter['employee_id'])) @foreach($filter['employee_id'] as $row2)
@endforeach @endif @if(isset($filter['services_ids'])) @foreach($filter['services_ids'] as $row2)
@endforeach @endif @if(isset($filter['status'])) @foreach($filter['status'] as $row2)
@endforeach @endif @if(isset($filter['crew_id'])) @foreach($filter['crew_id'] as $row2)
@endforeach @endif @if(isset($filter['cluster_id'])) @foreach($filter['cluster_id'] as $row2)
@endforeach @endif
Loading...
@csrf
@foreach($data as $key => $row) @foreach($row->leadservices as $key => $leadservices) @foreach($frequency as $key => $freq) @if($leadservices->id == $freq->service_id && $row->id == $freq->lead_id)
Details
I.D
Service
Service Code
Date
Time
Customer
Author
{{$freq->id}}
{{$leadservices->name}}
{{$leadservices->service_code}}
{{$freq->date_service}}
{{$freq->time_service}}
@if(isset($row->customer->first_name) && $row->customer->first_name != '')
{{$row->customer->first_name}}
@endif @if(isset($row->author->first_name) && $row->author->first_name != '')
{{$row->author->first_name}}
@endif
@endif @endforeach @endforeach @endforeach @if(isset($filter['date_filter']) && $filter['date_filter'] != '') @else @endif