@extends('layouts.print') @section('title', 'Doctor Appointment') @section('content') @if (count($appointments) > 0)

Doctor Appointment

Appointment List
@foreach($appointments as $key => $appointment) @endforeach
Doctor : {{$appointments[0]->doctor->full_name}} | Date: {{\Carbon\Carbon::parse($appointments[0]->created_at)->format('d/m/Y')}}
Serial Patient Name Date Time Payment
{{++$key}} {{$appointment->patient->full_name}} {{\Carbon\Carbon::parse($appointment->created_at)->format('d/m/Y h:i A')}} {{is_numeric($appointment->payment)?$appointment->payment:'Due'}}
{{$appointments->sum('payment')}}
@else

Data not available

@endif @stop @section('custom_styles') @stop