@extends('backend.layouts.app') @section('content')
@php $dateInput = request()->date_from ? request()->date_from : date('d-m-Y'); $dateInput = date('d-m-Y',strtotime($dateInput)); @endphp
@php $dateInput = request()->date_to ? request()->date_to : date('d-m-Y'); $dateInput = date('d-m-Y',strtotime($dateInput)); @endphp
@if( request()->date_from && request()->date_to)

Summary- {{$title}}

Print
@if (Session::has('error'))
×

{{ Session::get('error') }}

@endif @php $i=0; @endphp @if(isset($information)) @foreach($information as $key_main => $info) @php $i++ @endphp @if (count($info)>0)
{{ucwords(str_replace('_', ' ', $key_main))}}
@foreach($info as $key=>$entry) @php $wb_exist = false; $yb_exist = false; $golf_set_exist = false; $crs90_exist = false; $ch45_exist = false; $crs18_exist = false; $ch90_exist = false; $ra_exist = false; $pro_exist = false; @endphp @endforeach
Sl M.No Mem Name White Ball Yellow Ball Golf Set Daily Course Fee-09 Hole Coach Fee 45 min Daily Course Fee -18 Hole Coach Fee 90 min R&A PRO Shift P.Mode Total Action
{{$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}}
G.Total {{sprintf('%0.2f',$wb_total)}} {{sprintf('%0.2f',$yb_total)}} {{sprintf('%0.2f',$golf_set_total)}} {{sprintf('%0.2f',$crs90_total)}} {{sprintf('%0.2f',$ch45_total)}} {{sprintf('%0.2f',$crs18_total)}} {{sprintf('%0.2f',$ch90_total)}} {{sprintf('%0.2f',$ra_total)}} {{sprintf('%0.2f',$pro_total)}} -- -- {{sprintf('%0.2f',$total_bill)}}
@endif @endforeach @endif
{{--
--}}
Admin
Rep. Contractor
AGC
@endif
@endsection