@extends('backend.template.layouts.template-base') @section('title', 'All bills') @section('styles') @endsection @section('content') @php $filters = $filters ?? []; @endphp All bills @can('create', \App\Models\NewBill::class) New bill @endcan @if (session('success')) {{ session('success') }} @endif @if ($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif @csrf Duration @php $duration = old('duration_type', $filters['duration_type'] ?? '7days'); @endphp Today Past 7 days Past 30 days Past 90 days Custom Reg. no. Patient first name Referred by Referred by @foreach ($referredDoctors as $doc) @php $refLabel = $doc->referrerLabel(); @endphp first_name)> {{ $refLabel }} @endforeach Collection centre Collection centre @foreach ($collectionCentres as $centre) {{ $centre }} @endforeach Sample collection agent Sample collection agent @foreach ($sampleAgents as $agent) {{ $agent }} @endforeach Has due Cancelled Search Clear Reg. no. Date Patient Referred by Total Paid Discount Status Actions @endsection @section('scripts') @endsection