@section('page_css')
@include('owner.loyaltyreport.partials._action_buttons')
@if (Session::has('msg')) @endif
@if (isset($records) && !empty($records) && count($records)) @foreach ($records as $index => $singleData) @endforeach
Transaction ID Client Name Client Phone Car Reg. No. # of Times Washed Here # of Times to Free Wash Body Type Car Wash Type Date Washed Loyalty Type Discount(%) Used Loyalty Point Remaining Loyalty Point Logged in User
{{$singleData['wash_count']}} @if($singleData['driver_name'] !='') {{$singleData['driver_name']}} @if($singleData['email'] != '')
{{$singleData['email']}} @endif @else {{$singleData['co_fname']}} {{$singleData['co_lname']}} @if($singleData['email'] != '')
{{$singleData['email']}} @endif @endif
@if($singleData['driver_phone'] != '') +{{$singleData['driver_isd_code']}}{{$singleData['driver_phone']}} @endif {{$singleData['car_registration_no']}} {{noOfTimesWashed(Auth::user()->cwo_id, $singleData['driver_phone'])}} {{noOfTimesToFreeWash(Auth::user()->cwo_id, $singleData['driver_phone'], $singleData['id'])}} {{$singleData['body_type']}} {{ getWashTypes($singleData['id']) }}
@if($singleData['wash_type_id'] > 0) {{ getSingleWashTypeName($singleData['wash_type_id']) }}
@endif {{ getExtra($singleData['id']) }}
@if($singleData['date_washed'] != '') {{date("Y/m/d", strtotime($singleData['date_washed']))}} @endif @if($singleData['loyalty_type'] == 1) Free Wash @endif @if($singleData['loyalty_type'] == 2) Discount @endif @if($singleData['loyalty_type'] == 3) Loyalty Points @endif {{$singleData['discount']}} {{$singleData['used_loyalty_point']}} {{$singleData['remaining_loyalty_point']}} @if($singleData['cwo_user_id'] > 0) {{getUserFromIdInList($singleData['cwo_user_id'])}}
{{getUserEmailFromIdInList($singleData['cwo_user_id'])}} @else {{Auth::user()->name}}
{{Auth::user()->email}} @endif
@endif
@if (isset($records) && count($records)) {{ $records->appends($_GET)->links('pagination::bootstrap-4') }} @endif
@section('page_scripts') {{-- --}} @endsection