@extends('backend.layouts.master') @section('title') Bookings @endsection @section('main-content') @include('backend.layouts.notification')
Bookings
@if(count($orders)>0) @foreach($orders as $order) @php $tour=DB::table('tours')->select('title')->where('id',$order->tour_id)->get(); @endphp @endforeach
S.N. Name Email Country Tour Date Created Action
{{$order->id}} {{$order->first_name}} - {{$order->last_name}} {{$order->email}} {{$order->country}} @foreach($tour as $data) {{$order->tour->title ?? ''}} @endforeach {{$order->created_at->format('F d, Y h:i A')}}
@else
No bookings found!!! Please book some
@endif
@endsection