@extends('layouts.master') @section('title', 'Show Booking | Tripo - Tourism Management app') @section('title-topbar', __('basic.unit booking')) @section('css') @endsection @section('fixedcontent') @if (Session::has('success'))

Sent Successfully

{{ Session::get('success') }}

@endif @endsection @section('content')
{{ __('basic.dashboard') }} | {{ __('basic.all bookings') }} | {{ __('basic.unit booking') }}
@php $patient_ur_wa = route('patient_auth.booking_print', $booking_id); @endphp
{{ __('basic.unit booking') }}

{{ __('basic.patient') }}

{{ $booking->patient->full_name }}

{{ $booking->patient->phone_number }}

{{ __('patientappo.pay status') }}
@if ($booking->invoice->status == 0) @php $msg_invoice_debtor = __('basic.not paid'); $text_color_invoice_debtor = 'cancel-color-btn'; @endphp @elseif ($booking->invoice->status == 1) @php $text_color_invoice_debtor = 'pend-color-btn'; $msg_invoice_debtor = __('basic.pending'); @endphp @elseif ($booking->invoice->status == 2) @php $text_color_invoice_debtor = 'prog-color-btn'; $msg_invoice_debtor = __('basic.installment'); @endphp @elseif ($booking->invoice->status == 3) @php $text_color_invoice_debtor = 'done-color-btn'; $msg_invoice_debtor = __('basic.paid'); @endphp @elseif ($booking->invoice->status == 4) @php $msg_invoice_debtor = __('basic.refund'); $text_color_invoice_debtor = 'cancel-color-btn'; @endphp @endif {{ $msg_invoice_debtor }}
@if ($booking->status == 0) @php $text_color = 'not_accepted-color-btn'; $msg = __('patientappo.not accepted'); @endphp @elseif ($booking->status == 1) @php $text_color = 'main-color-btn'; $msg = __('patientappo.accepted'); @endphp @elseif ($booking->status == 2) @php $text_color = 'active-color-btn'; $msg = __('broker inquire'); @endphp @elseif ($booking->status == 3) @php $text_color = 'prog-color-btn'; $msg = __('traveler payment'); @endphp @elseif ($booking->status == 4) @php $text_color = 'done-color-btn'; $msg = __('received payment'); @endphp @elseif ($booking->status == 5) @php $text_color = 'pend-color-btn'; $msg = __('send a payment to broker'); @endphp @elseif ($booking->status == 6) @php $text_color = 'prog-color-btn'; $msg = __('broker confirm'); @endphp @elseif ($booking->status == 7) @php $text_color = 'done-color-btn'; $msg = __('patientappo.done'); @endphp @elseif ($booking->status == 8) @php $text_color = 'cancel-color-btn'; $msg = __('patientappo.canceled'); @endphp @endif
{{ __('basic.status') }}
{{ $msg }}
{{ __('basic.creator') }}

{{ $booking->creator->first_name . " " . $booking->creator->second_name }}

{!! QrCode::color(68, 95, 129)->size(60)->style('round')->eye('circle')->generate($booking->code) !!}
{{ __('basic.booking confirmation code') }}

{{ $booking->code }}


@php $total_buy = 0; $total_sell = 0; @endphp @foreach ($booking->hotel as $item)
@if($item->offer_room) @else @endif
{{ $item->hotel->name }}

{{ __('basic.room type') . ':'}} {{ $item->room_type->name }}

{{ __('basic.room meal') . ':'}} {{ $item->room_meal->name }}

{{ __('basic.room view') . ':'}} {{ $item->room_view->name }}

{{ __('basic.check in') }}
{{ date('d M Y', strtotime($item->start_at)) }}
{{ __('basic.check out') }}
{{ date('d M Y', strtotime($item->end_at)) }}
{{ __('basic.nights number') }}
{{ $item->nights . ' ' . __('basic.nights') }}
{{ __('basic.quantity') }}
{{ $item->quantity . ' ' . __('basic.rooms') }}
@php $total_buy += $item->invoice_item->cost; $total_sell += $item->invoice_item->final_price; @endphp
{{ __('basic.purchasing price') }}
{{ $item->invoice_item->cost }}
{{ __('basic.selling price') }}
{{ $item->invoice_item->final_price }}
{{ __('basic.hotel booking code') }}
{{ $item->code }}
{{ __('basic.broker') }}
{{ $item->debtor->company_name }}
@if($item->customer_name)

{{ __('basic.traveler name') . ':'}} {{ $item->customer_name }}

{{ __('basic.traveler phone') . ':'}} {{ $item->customer_phone }}

@endif @if ($item->debtor) @php $debtor_ur_wa = route('booking_print', $item->code); @endphp
@endif

@endforeach
{{ __('basic.total cost') }}
{{ $total_buy }} {{ __('basic.egp') }}
{{ __('basic.total selling') }}
{{ $total_sell }} {{ __('basic.egp') }}
{{ __('basic.net income') }}
{{ $total_sell - $total_buy }} {{ __('basic.egp') }}
{{ $booking->note }}
@error('appointment_note') {{ $message }} @enderror
{{ __('patientappo.come before 15 msg') }}
{{ __('basic.final price') }}

{{ $booking->final_price }}

{{ date('d M Y', strtotime($booking->start_at)) }}

@endsection @section('js') @endsection