@extends('layouts.print') @section('title', 'Doctor Appointment') @section('content') @if (count($appointments) > 0)
| 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')}} |