{{ __('basic.bus') }}
@if (count($patient->transp) > 0)
    @foreach ($patient->transp as $item) @if ($item->status == 0) @php $text_color = 'not_accepted-color'; $msg = __('not accepted'); @endphp @elseif ($item->status == 1) @php $text_color = 'main-color'; $msg = __('accepted'); @endphp @elseif ($item->status == 2) @php $text_color = 'arrived-color'; $msg = __('broker inquire'); @endphp @elseif ($item->status == 3) @php $text_color = 'inprog-color'; $msg = __('travler payment'); @endphp @elseif ($item->status == 4) @php $text_color = 'inprog-color'; $msg = __('received payment,'); @endphp @elseif ($item->status == 5) @php $text_color = 'notresp-color'; $msg = __('send a payment to broker'); @endphp @elseif ($item->status == 6) @php $text_color = 'notresp-color'; $msg = __('broker confirm'); @endphp @elseif ($item->status == 7) @php $text_color = 'done-color'; $msg = __('done'); @endphp @elseif ($item->status == 8) @php $text_color = 'cancel-color'; $msg = __('canceled'); @endphp @endif {{-- accept client and supplier invoice --}} @if(in_array($item->payment_method, [1,2]) && $item->invoice_item->invoice_id !== 0) @if ($item->invoice_item) @if ($item->invoice_item->invoice->status == 0) @php $msg_invoice = __('basic.not paid'); @endphp @elseif ($item->invoice_item->invoice->status == 1) @php $msg_invoice = __('basic.pending'); @endphp @elseif ($item->invoice_item->invoice->status == 2) @php $msg_invoice = __('basic.installment'); @endphp @elseif ($item->invoice_item->invoice->status == 3) @php $msg_invoice = __('basic.paid'); @endphp @elseif ($item->invoice_item->invoice->status == 4) @php $msg_invoice = __('basic.refund'); @endphp @endif @else @php $msg_invoice = 'No fees'; @endphp @endif @else @php $msg_invoice = __('basic.wallet'); @endphp @endif {{-- blade-formatter-disable-next-line --}} @break($loop->index === 2) @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
  • {{ date('h:i a', strtotime($item->start_at)) }}

    {{ date('d M Y', strtotime($item->start_at)) }}

    {{ $msg . ', ' . $msg_invoice }}

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

    @if($item->bus_trip)
    {{ $item->bus_trip->name }}
    @else {{ __('basic.not selected') }} @endif

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

    @if (isset($item->creator->first_name)) {{ $item->creator->first_name }} @else Not selected @endif

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

  • @endforeach
@else

{{ __('basic.nothing to show') }}

@endif