{{ Session::get('msg') }}
@if (isset($records) && !empty($records) && count($records))
@php
$getActiveLoyaltyTypeId = getActiveLoyaltyTypeId(Auth::user()->cwo_id);
@endphp
@endif
| Transaction ID | Client Name | Client Phone | Car Reg. No. | # of Times Washed Here | # of Times to Free Wash | Body Type | Car Wash Type | Amount Paid | Date Washed | Loyalty Type | Discount(%) | Earned Points | Total Available Points | Logged in User |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$singleData['wash_count']}} | {{$singleData['driver_name']}} | @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']) }} | {{$singleData['symbol']}}{{$singleData['total_amount']}} | @if($singleData['date_washed'] != '') {{date("Y/m/d", strtotime($singleData['date_washed']))}} @endif | {{getActiveLoyalty(Auth::user()->cwo_id)}} | {{$singleData['discount']}} | @if($getActiveLoyaltyTypeId == 1) 1 @endif @if($getActiveLoyaltyTypeId == 3) {{$singleData['added_loyalty_point']}} @endif | @if($getActiveLoyaltyTypeId == 1) 1 @endif @if($getActiveLoyaltyTypeId == 3) {{$singleData['total_loyalty_point']}} @endif |
@if($singleData['cwo_user_id'] > 0)
{{getUserFromIdInList($singleData['cwo_user_id'])}} {{getUserEmailFromIdInList($singleData['cwo_user_id'])}} @else {{Auth::user()->name}} {{Auth::user()->email}} @endif |
@if (isset($records) && count($records))
{{ $records->appends($_GET)->links('pagination::bootstrap-4') }}
@endif