{{-- --}} {{-- --}} {{--
--}} {{-- {{dd($data)}} --}} @php $totalAmount=0; $client_id=0; @endphp @foreach ($data as $shift) @if($client_id==$shift->id) @php $totalAmount = $totalAmount +$shift->total_client_charge; @endphp @else @php $client_id=$shift->id; $totalAmount=0; $totalAmount = $totalAmount +$shift->total_client_charge; @endphp @endif @endforeach
Funding Service Type Shift Date Hour Total CLient Charges Balance
{{$shift->amount}} {{$shift->service_type}} {{\Carbon\Carbon::parse($shift->shift_date)->format('D')." ".$shift->shift_date." ".$shift->start}} {{$shift->shift_hours}} {{$shift->total_client_charge}} {{$shift->amount-$totalAmount}}
{{--
--}}