@extends('admin.dash_layouts.main') @section('title') {{ 'Dashboard page' }} @endsection @section('content')

Manage Client

@if (session()->has('success')) @endif

Client itinerary list

@foreach ($data as $data) @endforeach
Invoice Client Date Sub Total Due Payment Action
{{ $data->invoice }} {{ $data->name }} @php $lastRecord = \App\Models\HotelBooking::where('tourb_id', $data->id) ->orderBy('date', 'DESC') ->first(); $firstRecord = \App\Models\HotelBooking::where('tourb_id', $data->id) ->orderBy('date', 'ASC') ->latest() ->first(); @endphp {{ $firstRecord->date ?? '' }} to {{ $lastRecord->date ?? '' }} {{ $data->subtotal }} {{ $data->total_due }} Edit Itinerary @if ($data->total_due != 0) Full payment @endif @if ($data->status == '0') Select Driver @elseif ($data->status == '1') Complete @endif
@endsection