| {{$loop->index +1 }}. |
{{$entry->membership_no}} |
{{$entry->full_name}} |
@php $wb_exist=false; @endphp
@foreach ($drr as $choice)
@if($entry->id==$choice->driving_info_id && $choice->service_name=='White Ball')
{{ sprintf('%0.2f', $choice->total_price)}}
@php $wb_exist=true; $wb_total=$wb_total+$choice->total_price; @endphp
@endif
@endforeach
{{(!!$wb_exist)?"":"0.00"}}
|
@php $yb_exist=false; @endphp
@foreach ($drr as $choice)
@if($entry->id==$choice->driving_info_id && $choice->service_name=='Yellow Ball')
{{ sprintf('%0.2f', $choice->total_price)}}
@php $yb_exist=true; $yb_total=$yb_total+$choice->total_price; @endphp
@endif
@endforeach
{{(!!$yb_exist)?"":"0.00"}}
|
@php $golf_set_exist=false; @endphp
@foreach ($drr as $choice)
@if($entry->id==$choice->driving_info_id && $choice->service_name=='Golf Set')
{{ sprintf('%0.2f', $choice->total_price)}}
@php $golf_set_exist=true; $golf_set_total=$golf_set_total+$choice->total_price; @endphp
@endif
@endforeach
{{(!!$golf_set_exist)?"":"0.00"}}
|
@php $crs90_exist=false; @endphp
@foreach ($drr as $choice)
@if($entry->id==$choice->driving_info_id && $choice->service_name=='Daily Course Fee-09 Hole')
{{ sprintf('%0.2f', $choice->total_price)}}
@php $crs90_exist=true; $crs90_total=$crs90_total+$choice->total_price; @endphp
@endif
@endforeach
{{(!!$crs90_exist)?"":"0.00"}}
|
@php $ch45_exist=false; @endphp
@foreach ($drr as $choice)
@if($entry->id==$choice->driving_info_id && $choice->service_name=='Coach Fee 45 min')
{{ sprintf('%0.2f', $choice->total_price)}}
@php $ch45_exist=true; $ch45_total=$ch45_total+$choice->total_price; @endphp
@endif
@endforeach
{{(!!$ch45_exist)?"":"0.00"}}
|
@php $crs18_exist=false; @endphp
@foreach ($drr as $choice)
@if($entry->id==$choice->driving_info_id && $choice->service_name=='Daily Course Fee -18 Hole')
{{ sprintf('%0.2f', $choice->total_price)}}
@php $crs18_exist=true; $crs18_total=$crs18_total+$choice->total_price; @endphp
@endif
@endforeach
{{(!!$crs18_exist)?"":"0.00"}}
|
@php $ch90_exist=false; @endphp
@foreach ($drr as $choice)
@if($entry->id==$choice->driving_info_id && $choice->service_name=='Coach Fee 90 min')
{{ sprintf('%0.2f', $choice->total_price)}}
@php $ch90_exist=true; $ch90_total=$ch90_total+$choice->total_price; @endphp
@endif
@endforeach
{{(!!$ch90_exist)?"":"0.00"}}
|
@php $ra_exist=false; @endphp
@foreach ($drr as $choice)
@if($entry->id==$choice->driving_info_id && $choice->service_name=='R&A')
{{ sprintf('%0.2f', $choice->total_price)}}
@php $ra_exist=true; $ra_total=$ra_total+$choice->total_price; @endphp
@endif
@endforeach
{{(!!$ra_exist)?"":"0.00"}}
|
@php $pro_exist=false; @endphp
@foreach ($drr as $choice)
@if($entry->id==$choice->driving_info_id && $choice->service_name=='PRO')
{{ sprintf('%0.2f', $choice->total_price)}}
@php $pro_exist=true; $pro_total=$pro_total+$choice->total_price; @endphp
@endif
@endforeach
{{(!!$pro_exist)?"":"0.00"}}
|
{{$entry->shift}} |
{{$entry->name}} |
{{$entry->grand_total}} |
|
@endforeach