@extends('layouts.master-layouts') @section('title') {{ __('List of Invoices') }} @endsection @section('css') @endsection @section('content') @component('components.breadcrumb') @slot('title') Invoice List @endslot @slot('li_1') Dashboard @endslot @slot('li_2') Invoice @endslot @endcomponent
@if ($role != 'patient') @endif @if ($role != 'patient') @endif @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 = $invoices->currentPage(); @endphp @foreach ($invoices as $invoice) @if ($role != 'patient') @endif @endforeach
{{ __('Sr. No') }}{{ __('Patient Name') }}{{ __('Appointment Date') }} {{ __('Appointment Time') }} {{ __('Status') }} {{ __('Option') }}
{{ $loop->index + 1 + $per_page * ($currentpage - 1) }}{{ $invoice->user->first_name }} {{ $invoice->user->last_name }}{{ $invoice->appointment->appointment_date }} {{ $invoice->appointment->timeSlot->from . ' to ' . $invoice->appointment->timeSlot->to }} {{ $invoice->payment_status }} @if ($role != 'patient') @endif
Showing {{ $invoices->firstItem() }} to {{ $invoices->lastItem() }} of {{ $invoices->total() }} entries
{{ $invoices->links() }}
@endsection @section('script') @endsection