@extends('admin.layout') @section('content')

{{ __('Information') }}

{{ __('Username') . ':' }}
{{ $user->username ? $user->username : '-' }}
{{ __('First Name') . ':' }}
{{ $user->first_name ? $user->first_name : '-' }}
{{ __('Last Name') . ':' }}
{{ $user->last_name ? $user->last_name : '-' }}
{{ __('Email') . ':' }}
{{ $user->email ? $user->email : '-' }}
{{ __('Phone') . ':' }}
{{ $user->contact_number ? $user->contact_number : '-' }}
{{ __('Address') . ':' }}
{{ $user->address ? $user->address : '-' }}
{{ __('City') . ':' }}
{{ $user->city ? $user->city : '-' }}
{{ __('State') . ':' }}
{{ $user->state ? $user->state : '-' }}
{{ __('Country') . ':' }}
{{ $user->country ? $user->country : '-' }}

{{ __('Recent Room Bookings') }}

@php $rbookings = $user->bookHotelRoom()->orderBy('id', 'desc')->limit(10)->get(); @endphp @if (count($rbookings) == 0)

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

@else
@foreach ($rbookings as $booking) @includeIf('admin.room-booking.show-attachment') @endforeach
{{ __('Room') }} {{ __('Rent / Night') }} {{ __('Payment Status') }} {{ __('Actions') }}
@php $roomhave = null; $title = null; if ($booking->hotelRoom) { $roomhave = 'done'; } if ($booking->hotelRoom) { $roomInfo = $booking->hotelRoom->room_content ->where('language_id', $defaultLang->id) ->first(); } @endphp @if ($roomInfo) {{ strlen($roomInfo->title) > 25 ? mb_substr($roomInfo->title, 0, 25, 'utf-8') . '...' : $roomInfo->title }} @else -- @endif {{ symbolPrice($booking->grand_total) }} @if ($booking->payment_status == 0)
@csrf
@else

{{ ucfirst( $booking->payment_status == '1' ? __('Paid') : ($booking->payment_status == '0' ? __('Unpaid') : __('Rejected')), ) }}

@endif
@endif
@includeIf('admin.room-booking.send-mail') @endsection