@extends('layouts.master') @section('title', 'Show Booking | Tripo - Tourism Management app') @section('title-topbar', __('basic.vehicle 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.transportation booking') }}
@php $patient_ur_wa = route('patient_auth.booking_print', $booking_id); @endphp {{-- Confirmation @if (!in_array($booking->status, [3,4])) Payment @endif {{ __('basic.print') }} --}}
{{ __('basic.transportation 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->transportation as $item)
@if($item->bus_trip) {{ $item->bus_trip->name }} @else {{ $item->vehicle->name }} @endif @if($item->from)

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

@endif @if($item->to)

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

@endif

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

{{ __('basic.check in') }}
{{ date('d M Y h:i A', strtotime($item->start_at)) }}
{{ __('basic.check out') }}
{{ date('d M Y h:i A', strtotime($item->end_at)) }}
@if($item->cat == 1)
{{ __('basic.days number') }}
{{ $item->days . ' ' . __('basic.days') }}
@else
{{ __('basic.tickets') }}
{{ $item->qty . ' ' . __('basic.tickets') }}
{{ __('basic.seat numbers') }}
@foreach ($item->seats as $item_seat) {{ $item_seat->seat }} @endforeach {{ __('basic.numbers') }}
@endif
@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.transport 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