@extends('layouts.master') @section('title', 'All Bookings | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.all bookings')) @section('css') @endsection @section('fixedcontent') @if (Session::has('success'))
@endif @endsection @section('content')| {{ __('basic.booking number') }} | {{ __('basic.service') }} | {{ __('basic.quantity') }} | {{ __('basic.file') }} | {{ __('basic.traveler') }} | {{ __('basic.broker') }} | {{ __('basic.worker') }} | {{ __('basic.start') }} | {{ __('basic.end') }} | {{ __('basic.sell to') }} | {{ __('basic.status') }} | {{ __('patientappo.pay status') }} | {{ __('basic.itinerary') }} |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @if($item->booking) {{ $item->booking->code }} @else {{ __('basic.not selected') }} @endif | {{ $item->package->name }}
{{ __('basic.type') . ':'}} {{ $item->type_qty . " " . __('basic.trip') }} {{ __('basic.capacity') . ':'}} {{ $item->qty . " " . __('basic.people') }} |
@if($item->type == 1) @php $package_type = __('basic.customized'); @endphp @elseif ($item->type == 2) @php $package_type = __('basic.commission'); @endphp @endif {{ $package_type }} | {{ $item->file_id }} | @if($item->patient) {{ $item->patient->first_name }} @else {{ __('basic.not selected') }} @endif | @if ($item->debtor) {{ $item->debtor->company_name}} @else {{ __('basic.not selected') }} @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)) }} |
@if($item->sell_debtor) {{ $item->sell_debtor->company_name }} @else {{ __('basic.not selected') }} @endif | {{ $msg }} | {{-- 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 it is customized --}}
@if ($item->type == 1)
{{ __('basic.itinerary') }}@endif |