@extends('user.layout') @section('content') @php $defaultLang = \App\Models\User\Language::where('is_default', 1) ->where('user_id', Auth::user()->id) ->first(); @endphp
@if (request()->routeIs('user.room_bookings.all_bookings')) {{ __('All Room Bookings') }} @elseif (request()->routeIs('user.room_bookings.paid_bookings')) {{ __('Paid Room Bookings') }} @elseif (request()->routeIs('user.room_bookings.unpaid_bookings')) {{ __('Unpaid Room Bookings') }} @endif
routeIs('user.room_bookings.all_bookings')) action="{{ route('user.room_bookings.all_bookings') }}" @elseif (request()->routeIs('user.room_bookings.paid_bookings')) action="{{ route('user.room_bookings.paid_bookings') }}" @elseif (request()->routeIs('user.room_bookings.unpaid_bookings')) action="{{ route('user.room_bookings.unpaid_bookings') }}" @endif method="GET">
{{ __('Add Booking') }}
@if (count($bookings) == 0)

{{ __('NO ROOM BOOKING FOUND!') }}

@else
@foreach ($bookings as $booking) @includeIf('user.rooms.booking.show_attachment') @endforeach
{{ __('Booking No.') }} {{ __('Room') }} {{ __('Rent') }} {{ __('Paid via') }} {{ __('Payment Status') }} {{ __('Attachment') }} {{ __('Actions') }}
{{ '#' . $booking->booking_number }} @php $title = $booking->hotelRoom->roomContent->where('language_id', $defaultLang->id)->first()->title; @endphp {{ strlen($title) > 25 ? mb_substr($title, 0, 25, 'utf-8') . '...' : $title }} {{ $booking->currency_text_position == 'left' ? $booking->currency_text : '' }} {{ $booking->grand_total }} {{ $booking->currency_text_position == 'right' ? $booking->currency_text : '' }} {{ $booking->payment_method }} @if ($booking->gateway_type == 'online') @if ($booking->payment_status == 1)

{{ __('Paid') }}

@else

{{ __('Unpaid') }}

@endif @else
@csrf
@endif
@if (!empty($booking->attachment)) {{ __('Show') }} @else - @endif
@endif
@includeIf('user.rooms.booking.send_mail') @includeIf('user.rooms.booking.all_rooms') @endsection @section('scripts') @endsection