@extends('layouts.master-layouts') @section('title') {{ __('Today Appointment list') }} @endsection @section('content') @component('components.breadcrumb') @slot('title') Appointment List @endslot @slot('li_1') Dashboard @endslot @slot('li_2') Appointment @endslot @endcomponent
@if (session()->has('page_limit')) @php $per_page = session()->get('page_limit'); @endphp @else @php $per_page = Config::get('app.page_limit'); @endphp @endif @php $currentpage = $Today_appointment->currentPage(); @endphp @foreach ($Today_appointment as $item) @endforeach
{{ __('Sr. No') }} {{ __('Doctor Name') }} {{ __('Patient Name') }} {{ __('Patient Contact No') }} {{ __('Patient Email') }} {{ __('Date') }} {{ __('Time') }} {{ __('Status') }} {{ __('Action') }}
{{ $loop->index + 1 + $per_page * ($currentpage - 1) }} {{ @$item->doctor->user->first_name . ' ' . @$item->doctor->user->last_name }} {{ $item->patient->first_name . ' ' . $item->patient->last_name }} {{ $item->patient->mobile }} {{ $item->patient->email }} {{ $item->appointment_date }} {{ $item->timeSlot->from . ' to ' . $item->timeSlot->to }} @if ($item->status == 1) Complete @elseif( $item->status == 2) Cancel @elseif( $item->status == 0) Pending @endif @if ($item->status == 0) @if ($role == 'doctor' || $role == 'receptionist') @endif @endif
Showing {{ $Today_appointment->firstItem() }} to {{ $Today_appointment->lastItem() }} of {{ $Today_appointment->total() }} entries
{{ $Today_appointment->links() }}
@endsection @section('script') @endsection