Patient
{{ $patient->first_name . ' ' . $patient->second_name }}
{{ $patient->city->name }} {{ $patient->country->name }}
Age
{{ \Carbon\Carbon::parse($patient->birthday)->diff(\Carbon\Carbon::now())->format('%y') }}
Insurance
{{ $patient->insurance }}
Phone Number
{{ $patient->phone_number }}
| {{ __('basic.service') }} | {{ __('basic.room') }} | {{ __('basic.destination') }} | {{ __('basic.company') }} | {{ __('basic.worker') }} | {{ __('basic.start') }} | {{ __('basic.end') }} | {{ __('basic.status') }} | {{ __('patientappo.pay status') }} |
|---|---|---|---|---|---|---|---|---|
| {{ $hotel_name }} | {{ $item->quantity }} {{ $item->room_type }} room | {{ $item->destination->name }} | @if ($item->debtor) {{ $item->debtor->company_name}} @else No Company @endif | @isset($item->creator->first_name) {{ $item->creator->first_name }} @endisset |
{{ date('Y-m-d', strtotime($item->start_at)) }} {{ date('h:i a', strtotime($item->start_at)) }} |
{{ date('Y-m-d', strtotime($item->end_at)) }} {{ date('h:i a', strtotime($item->end_at)) }} |
{{ $msg }} | {{ $msg_invoice }} |
| {{ __('basic.booking number') }} | {{ __('basic.service') }} | {{ __('basic.cat') }} | {{ __('basic.type') }} | {{ __('basic.destination') }} | {{ __('basic.broker') }} | {{ __('basic.worker') }} | {{ __('basic.start') }} | {{ __('basic.end') }} | {{ __('basic.tickets') }} | {{ __('basic.status') }} | {{ __('basic.sell to') }} | {{ __('patientappo.pay status') }} | {{ __('basic.cost invoice') }} |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @if($item->booking) {{ $item->booking->code }} @else {{ __('basic.not selected') }} @endif | @if($item->bus_trip) {{ $item->bus_trip->name }} @endif | @if ($item->cat == 1) @php $bus_cat = __('basic.sell the whole vehicle'); @endphp @elseif ($item->cat == 2) @php $bus_cat = __('basic.sell by ticket'); @endphp @endif {{ $bus_cat }} | @if ($item->type == 1) @php $bus_type = 'Singl Trip'; @endphp @elseif ($item->type == 2) @php $bus_type = 'Round Trip'; @endphp @endif {{ $bus_type . ' with ' . $item->quantity }} seats | @if($item->bus_trip) {{ $item->bus_trip->name }} @endif | @if ($item->debtor) {{ $item->debtor->first_name . " " . $item->debtor->second_name}} @else {{ __('basic.not selected') }} @endif | @isset($item->creator->first_name) {{ $item->creator->first_name }} @endisset |
@if ($item->start_at)
{{ date('Y-m-d', strtotime($item->start_at)) }} {{ date('h:i a', strtotime($item->start_at)) }} @else @endif |
@if ($item->end_at)
{{ date('Y-m-d', strtotime($item->end_at)) }} {{ date('h:i a', strtotime($item->end_at)) }} @else ($item->type == 2) @endif |
@if($item->seats) @foreach ($item->seats as $item_seat) {{ $item_seat->seat }} @endforeach {{ __('basic.numbers') }} @else {{ __('basic.not selected') }} @endif | {{ $msg }} | @if($item->sell_debtor) {{ $item->sell_debtor->company_name }} @else {{ __('basic.not selected') }} @endif | {{-- accept client and supplier invoice --}} @if(in_array($item->payment_method, [1,2]) && $item->invoice_item->invoice_id !== 0) @if ($item->invoice_item->invoice->status == 0) @php $msg_invoice_debtor = __('basic.not paid'); $text_color_invoice_debtor = 'cancel-color-btn'; @endphp @elseif ($item->invoice_item->invoice->status == 1) @php $text_color_invoice_debtor = 'pend-color-btn'; $msg_invoice_debtor = __('basic.pending'); @endphp @elseif ($item->invoice_item->invoice->status == 2) @php $text_color_invoice_debtor = 'prog-color-btn'; $msg_invoice_debtor = __('basic.installment'); @endphp @elseif ($item->invoice_item->invoice->status == 3) @php $text_color_invoice_debtor = 'done-color-btn'; $msg_invoice_debtor = __('basic.paid'); @endphp @elseif ($item->invoice_item->invoice->status == 4) @php $msg_invoice_debtor = __('basic.refund'); $text_color_invoice_debtor = 'cancel-color-btn'; @endphp @else @php $msg_invoice_debtor = __('basic.no fees'); $text_color_invoice_debtor = 'not_accepted-color-btn'; @endphp @endif {{ $msg_invoice_debtor }} @else {{ __('basic.no invoice') }} @endif | @if ($item->cost) @if ($item->cost->status == 0) @php $msg_invoice_debtor = __('basic.not paid'); $text_color_invoice_debtor = 'cancel-color-btn'; @endphp @elseif ($item->cost->status == 1) @php $text_color_invoice_debtor = 'pend-color-btn'; $msg_invoice_debtor = __('basic.pending'); @endphp @elseif ($item->cost->status == 2) @php $text_color_invoice_debtor = 'prog-color-btn'; $msg_invoice_debtor = __('basic.installment'); @endphp @elseif ($item->cost->status == 3) @php $text_color_invoice_debtor = 'done-color-btn'; $msg_invoice_debtor = __('basic.paid'); @endphp @elseif ($item->cost->status == 4) @php $msg_invoice_debtor = __('basic.refund'); $text_color_invoice_debtor = 'cancel-color-btn'; @endphp @endif @php $debtor_inv_id = $item->cost->id; @endphp {{ $msg_invoice_debtor }} @else {{ __('basic.no cost') }} @endif |
| {{ __('basic.name') }} | {{ __('basic.from') }} | {{ __('basic.to') }} | {{ __('basic.company') }} | {{ __('basic.worker') }} | {{ __('basic.start') }} | {{ __('basic.end') }} | {{ __('basic.status') }} | {{ __('patientappo.pay status') }} | {{ __('patientappo.pay code') }} |
|---|---|---|---|---|---|---|---|---|---|
| {{ $item->name }} | {{ $item->from->name }} | {{ $item->to->name }} | @if ($item->debtor) {{ $item->debtor->first_name . " " . $item->debtor->second_name}} @else No Company @endif | @isset($item->creator->first_name) {{ $item->creator->first_name }} @endisset |
{{ date('Y-m-d', strtotime($item->start_at)) }} {{ date('h:i a', strtotime($item->start_at)) }} |
{{ date('Y-m-d', strtotime($item->end_at)) }} {{ date('h:i a', strtotime($item->end_at)) }} |
{{ $msg }} | {{ $msg_invoice }} | @if ($item->invoice_item) {{ $item->invoice_item->invoice->code }} @endif |
| {{ __('basic.service') }} | {{ __('basic.quantity') }} | {{ __('basic.destination') }} | {{ __('basic.company') }} | {{ __('basic.worker') }} | {{ __('basic.start') }} | {{ __('basic.end') }} | {{ __('basic.status') }} | {{ __('patientappo.pay status') }} | {{ __('basic.code') }} |
|---|---|---|---|---|---|---|---|---|---|
| {{ $item->trip_offer->name }} | {{ $item->qty }} | {{ $item->trip_offer->trip->destination->name }} | @if ($item->debtor) {{ $item->debtor->company_name}} @else No Company @endif | @isset($item->creator->first_name) {{ $item->creator->first_name }} @endisset |
{{ date('Y-m-d', strtotime($item->start_at)) }} {{ date('h:i a', strtotime($item->start_at)) }} |
{{ date('Y-m-d', strtotime($item->end_at)) }} {{ date('h:i a', strtotime($item->end_at)) }} |
{{ $msg }} | {{ $msg_invoice }} | @if ($item->invoice_item) {{ $item->invoice_item->invoice->code }} @endif |
| {{ __('basic.service') }} | {{ __('basic.quantity') }} | {{ __('basic.destination') }} | {{ __('basic.company') }} | {{ __('basic.worker') }} | {{ __('basic.start') }} | {{ __('basic.end') }} | {{ __('basic.status') }} | {{ __('patientappo.pay status') }} | {{ __('basic.code') }} |
|---|---|---|---|---|---|---|---|---|---|
| {{ $item->package_offer->name }} | {{ $item->qty }} | {{ $item->package_offer->package->destination->name }} | @if ($item->debtor) {{ $item->debtor->company_name}} @else No Company @endif | @isset($item->creator->first_name) {{ $item->creator->first_name }} @endisset |
{{ date('Y-m-d', strtotime($item->start_at)) }} {{ date('h:i a', strtotime($item->start_at)) }} |
{{ date('Y-m-d', strtotime($item->end_at)) }} {{ date('h:i a', strtotime($item->end_at)) }} |
{{ $msg }} | {{ $msg_invoice }} | @if ($item->invoice_item) {{ $item->invoice_item->invoice->code }} @endif |
| {{ __('basic.destination') }} | {{ __('basic.company') }} | {{ __('basic.worker') }} | {{ __('basic.type') }} | {{ __('basic.duration') }} | {{ __('basic.start') }} | {{ __('basic.end') }} | {{ __('basic.status') }} | {{ __('patientappo.pay status') }} | {{ __('basic.code') }} |
|---|---|---|---|---|---|---|---|---|---|
| {{ $item->visa->name }} | @if ($item->debtor) {{ $item->debtor->company_name }} @else No Company @endif | @isset($item->creator->first_name) {{ $item->creator->first_name }} @endisset | {{ $item->visa_type }} | {{ $item->duration }} |
{{ date('Y-m-d', strtotime($item->start_at)) }} {{ date('h:i a', strtotime($item->start_at)) }} |
{{ date('Y-m-d', strtotime($item->end_at)) }} {{ date('h:i a', strtotime($item->end_at)) }} |
{{ $msg }} | {{ $msg_invoice }} | @if ($item->invoice_item) {{ $item->invoice_item->invoice->code }} @endif |
| {{ __('basic.name') }} | {{ __('basic.type') }} | {{ __('basic.discount') }} | {{ __('patientappo.final price') }} | {{ __('basic.paid') }} | {{ __('basic.status') }} | {{ __('basic.description') }} | {{ __('basic.branch') }} | {{ __('basic.date') }} |
|---|---|---|---|---|---|---|---|---|
| {{ $item->service_inv_cat->name }} | {{ $msg_invoice_type }} | @if (!empty($item->discount)) {{ $item->discount }} {{ __('basic.egp') }} @endif | {{ $item->final_price }} {{ __('basic.egp') }} | @if (!empty($item->paid)) {{ $item->paid }} {{ __('basic.egp') }} @endif | {{ $msg_invoice }} | {{ $item->note }} @if ($item->worker) | shift: {{ $item->worker->name }} @endif | {{ $item->branch?->name }} |
{{ date('Y-m-d', strtotime($item->paid_date)) }} {{ date('h:i a', strtotime($item->paid_date)) }} |
| {{ $item->service_inv_cat->name }} | {{ $msg_invoice_type }} | @if (!empty($item->discount)) {{ $item->discount }} {{ __('basic.egp') }} @endif | {{ $item->final_price }} {{ __('basic.egp') }} | @if (!empty($item->paid)) {{ $item->paid }} {{ __('basic.egp') }} @endif | {{ $msg_invoice }} | {{ $item->note }} @if ($item->worker) | shift: {{ $item->worker->name }} @endif | {{ $item->branch->name }} |
{{ date('Y-m-d', strtotime($item->paid_date)) }} {{ date('h:i a', strtotime($item->paid_date)) }} |