@extends('backend.layouts_backend.master') @section('title') All Tour Bookings @endsection @section('content')
Tour Bookings ({{ $count_bookings }})
{{--
@can('booking-create') Add booking @endcan
--}} {{--
@can('booking-restore') Trashed bookings @endcan
--}}
{{-- MESSAGES --}} {{-- alert add item --}} @if (session('messagesave')) {{--
{{ session('message')}}
--}} @endif {{-- alert delete item --}} @if (session('messagedelete')) {{--
{{ session('messagedelete')}}
--}} @endif {{-- alert update item --}} @if (session('messageupdate')) @endif {{-- alert restore item --}} @if (session('messagerestore')) @endif
{{-- --}} @forelse ($bookings as $booking) {{-- --}} @empty
Oops! No tour bookings available!
@endforelse
#ID #Id First Name Last Name Tour Arrival Date Action
{{ $booking->id }}{{ $booking->id }} @if (!empty($booking->first_name)) {{ $booking->first_name }} @else N/A @endif @if (!empty($booking->last_name)) {{ $booking->last_name }} @else N/A @endif @if (!empty($booking->tour->name)) {{ $booking->tour->name }} @else N/A @endif @if (!empty($booking->arrival_date)) {{ $booking->arrival_date }} @else N/A @endif
{{-- edit --}} {{-- @can('booking-edit') --}} {{--
--}} {{-- @endcan --}} {{-- @can('booking-delete') --}}
@csrf @method('DELETE')
{{-- @endcan --}}
@endsection