@extends('layouts.master') @section('title', 'Bookings | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.all bookings')) @section('css') @endsection @section('fixedcontent') @if (Session::has('success'))

Sent Successfully

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

@endif @endsection @section('content')
{{ __('basic.dashboard') }} | {{ __('basic.booking center') }} | {{ __('basic.all bookings') }}
{{ __('basic.new booking') }} {{ __('basic.print') }} {{ __('basic.search filter') }}
{{ __('basic.bookings') }}
{{ __('basic.from') }} {{ $date_from }} {{ __('basic.to') }} {{ $date_to }}
{{ __('basic.all bookings') }}
@foreach ($booking as $item) @if ($item->status == 0) @php $text_color = 'not_accepted-color-btn'; $msg = __('patientappo.not accepted'); @endphp @elseif ($item->status == 1) @php $text_color = 'main-color-btn'; $msg = __('patientappo.accepted'); @endphp @elseif ($item->status == 2) @php $text_color = 'active-color-btn'; $msg = __('broker inquire'); @endphp @elseif ($item->status == 3) @php $text_color = 'prog-color-btn'; $msg = __('traveler payment'); @endphp @elseif ($item->status == 4) @php $text_color = 'done-color-btn'; $msg = __('received payment'); @endphp @elseif ($item->status == 5) @php $text_color = 'pend-color-btn'; $msg = __('send a payment to broker'); @endphp @elseif ($item->status == 6) @php $text_color = 'prog-color-btn'; $msg = __('broker confirm'); @endphp @elseif ($item->status == 7) @php $text_color = 'done-color-btn'; $msg = __('patientappo.done'); @endphp @elseif ($item->status == 8) @php $text_color = 'cancel-color-btn'; $msg = __('patientappo.canceled'); @endphp @endif @if ($item->note_doctor) @php $icon_note = 'fa-user-check text-blue-400'; @endphp @else @php $icon_note = 'fa-user-edit text-grey-400'; @endphp @endif @endforeach
{{ __('basic.booking number') }} {{ __('basic.branch') }} {{ __('basic.file id') }} {{ __('basic.traveler') }} {{ __('basic.worker') }} {{ __('basic.status') }} {{ __('basic.sell to') }} {{ __('basic.buy') }} {{ __('basic.sell') }} {{ __('basic.net income') }} {{ __('basic.created') }} {{ __('basic.last update') }}
{{ $item->code }} @if($item->branch) {{ $item->branch->name }} @else {{ __('basic.not selected') }} @endif {{ $item->file_id }} @if($item->patient_id) {{ $item->patient->first_name }} @else {{ __('basic.not selected') }} @endif @isset($item->creator->first_name) {{ $item->creator->first_name }} @endisset {{ $msg }} @if($item->sell_debtor) {{ $item->sell_debtor->company_name }} @else {{ __('basic.not selected') }} @endif {{ $item->total_buy_price }} {{ $item->total_sell_price }} {{ $item->total_sell_price - $item->total_buy_price }} {{ date('Y-m-d', strtotime($item->created_at)) }}
{{ date('h:i a', strtotime($item->created_at)) }}
{{ date('Y-m-d', strtotime($item->updated_at)) }}
{{ date('h:i a', strtotime($item->updated_at)) }}
@endsection @section('js') @endsection