@extends('website.layouts.master_top') @section('css') @endsection @section('content')

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

{{ $appointment->receivable->full_name }}

{{ $appointment->receivable->phone_number }}

{{ __('patientappo.pay status') }}
@if ($appointment->status == 0) @php $msg_invoice_debtor = __('basic.not paid'); $text_color_invoice_debtor = 'cancel-color-btn'; @endphp @elseif ($appointment->status == 1) @php $text_color_invoice_debtor = 'pend-color-btn'; $msg_invoice_debtor = __('basic.pending'); @endphp @elseif ($appointment->status == 2) @php $text_color_invoice_debtor = 'prog-color-btn'; $msg_invoice_debtor = __('basic.installment'); @endphp @elseif ($appointment->status == 3) @php $text_color_invoice_debtor = 'done-color-btn'; $msg_invoice_debtor = __('basic.paid'); @endphp @elseif ($appointment->status == 4) @php $msg_invoice_debtor = __('basic.refund'); $text_color_invoice_debtor = 'cancel-color-btn'; @endphp @endif {{ $msg_invoice_debtor }}
{{ __('basic.creator') }}

{{ $appointment->creator->first_name }}

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

{{ $appointment->code }}


@foreach ($appointment->invoice_items as $item)
@if ($item->debtor) @php $debtor_ur_wa = route('booking_print', $appointment->code); @endphp @if ($item->type == 1) @php $service_type = "Hotel"; @endphp @elseif ($item->type == 2) @php $service_type = "Single Bus"; @endphp @elseif ($item->type == 3) @php $service_type = "Round Bus"; @endphp @elseif ($item->type == 4) @php $service_type = "Visa"; @endphp @elseif ($item->type == 5) @php $service_type = "Airline Single"; @endphp @elseif ($item->type == 6) @php $service_type = "airline round"; @endphp @elseif ($item->type == 7) @php $service_type = "Package"; @endphp @elseif ($item->type == 8) @php $service_type = "Trip"; @endphp @endif @endif {{ $service_type }} @if ($item->room_type) {{ $item->room_type }} Room @endif {{ $item->categorizable->name }} @if ($item->days) for {{ $item->days }} days @endif {{ "*" . $item->qty }}
@if ($item->final_price) {{ $item->final_price }} {{ __('basic.egp') }} @else No fees @endif
@endforeach
{{ __('basic.discount') }}
@if ($appointment->invoice_item) @if (!empty($invoice->invoice_item->invoice->discount)) {{ $appointment->invoice_item->invoice->discount }} {{ __('basic.egp') }} @else 0 @endif @else No Discount @endif

{{ __('basic.total price') }}
{{ $appointment->final_price }} {{ __('basic.egp') }}
{{ $appointment->note }}
@error('appointment_note') {{ $message }} @enderror
Here is the total price including tax
{{ __('Final price') }}

{{ $appointment->final_price }}

{{ date('d M Y', strtotime($appointment->created_at)) }}

@endsection @section('js') @endsection