@extends('admin.main') @section('content') @include('admin.reports.dateJs')

Customer & Service Report Export
 

@include('admin.msg')
@foreach($bookings as $b) @endforeach
Bill Date ID Name Invoice No Billed Paid Discount Tax Refund Due Item Price Service Name
{{ $b->created_at->format('D j M') }} P{{ $b->patient_id }} {{ $b->patient->name }} {{ $b->id }} {{ $b->base_amount }} {{ $b->paid_amount }} {{ $b->total_discount }} {{ $b->total_tax }} {{ $b->refund_amount }} {{ (float)$b->final_amount - (float)$b->paid_amount }} {{ $b->base_amount }} {{ optional($b->purchase_services->first())->service_name ?? 'Others' }}
{{ $bookings->appends(['start_date' => $start_date, 'end_date' => $end_date])->links() }}
@endsection