@extends('layouts.master') @section('title', 'Booking Center | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.booking center')) @section('css') @endsection @section('content')
{{ __('basic.dashboard') }} | {{ __('basic.booking center') }}
{{ __('basic.new booking') }} {{ __('basic.print') }} {{ __('basic.search filter') }}
{{ __('basic.booking center') }}
{{ __('basic.from') }} {{ $date_from }} {{ __('basic.to') }} {{ $date_to }}
{{ __('basic.appointments') }}
{{ __('basic.workers') }}
{{ __('basic.branches') }}
{{ __('basic.sell to debtor') }}
{{ __('basic.recent bookings') }}
@foreach ($recent_bookings 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) {{ $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') {{-- data table --}} @php $chart_color = ['#323ac8', '#38dfa8','#1a78f1', '#d13c62', '#12c7d9', '#03c2c3', '#5035df', '#17a673', '#2e59d9', '#9aeded', '#f3d56a', '#7c859d', '#a4adc5', '#80142f', '#33d293', '#bed233', '#3958e9', '#10c86f', '#654fb6', '#a44fb6', '#89728e', '#c85110', '#6d769d', '#1b6954', '#204494', '#94206b', '#948320', '#209493', '#292094', '#203a65', '#4e6fa5', '#e29031', '#e23168', '#31e0e2', '#e29131', '#319fe2', '#8131e2', '#31a8e2', '#31e2c0', '#31c3e2', '#e2a931', '#3157e2']; @endphp @endsection