@if (count($patient->appointments) > 0)
    @foreach ($patient->appointments as $item) @if ($item->status == 0) @php $text_color = 'not_accepted-color'; $msg = __('patientappo.not accepted'); @endphp @elseif ($item->status == 1) @php $text_color = 'main-color'; $msg = __('patientappo.accepted'); @endphp @elseif ($item->status == 2) @php $text_color = 'arrived-color'; $msg = __('patientappo.arrived'); @endphp @elseif ($item->status == 3) @php $text_color = 'inprog-color'; $msg = __('patientappo.with doctor'); @endphp @elseif ($item->status == 4) @php $text_color = 'done-color'; $msg = __('patientappo.done appointment'); @endphp @elseif ($item->status == 5) @php $text_color = 'notresp-color'; $msg = __('patientappo.not respond'); @endphp @elseif ($item->status == 6) @php $text_color = 'cancel-color'; $msg = __('patientappo.canceled'); @endphp @endif @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 {{-- blade-formatter-disable-next-line --}} @break($loop->index === 3) @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.type') }}

    {{ $item->service_item->name }}

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

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

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

  • @endforeach
@else

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

@endif