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
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
@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