@section('externalcss') @endsection @if(\Illuminate\Support\Facades\Auth::user()->isAbleTo('reports-read'))
@error('start_date') {{ $message }} @enderror
@error('end_date') {{ $message }} @enderror
{{-- --}} @error('service_id') {{ $message }} @enderror
{{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}}
@if(sizeof($reportarray)>0)
@if($orginfo) @if($orginfo->getOrganization->logo) {{-- @else--}} {{-- --}} @endif @endif
@if($orginfo) {{$orginfo->unit_name}}
@if($orginfo->address != null){{$orginfo->address}},@endif @if($orginfo->city != null) {{$orginfo->city}},@endif @if($orginfo->state != null){{$orginfo->state}},@endif @if($orginfo->country != null){{$orginfo->country}}@endif @if($orginfo->pincode !=null) - {{$orginfo->pincode}}@endif @endif

Collection Report : @if(strtotime($start_date) == strtotime($end_date)) {{Carbon\Carbon::parse($start_date)->format('d F, Y')}} @else From {{Carbon\Carbon::parse($start_date)->format('d F, Y')}} To {{Carbon\Carbon::parse($end_date)->format('d F, Y')}} @endif

@if(\Illuminate\Support\Facades\Auth::user()->hasRole('admin') || \Illuminate\Support\Facades\Auth::user()->hasRole('doctors')) @endif @if(sizeof($reportarray)>0) @foreach($reportarray as $key => $report) @if(\Illuminate\Support\Facades\Auth::user()->hasRole('admin') || \Illuminate\Support\Facades\Auth::user()->hasRole('doctors')) @endif @endforeach @else @endif @if(\Illuminate\Support\Facades\Auth::user()->hasRole('admin') || \Illuminate\Support\Facades\Auth::user()->hasRole('doctors')) @endif
Serial No. Activity Details Patient Name & Age DateDr. Disc(INR) Amount(INR)
{{$key+1}}
{{$report['diagnosis_name']}}
{{$report['patient_name']}} (Age : {{$report['age']}})
@if($report['city_name'] != null || $report['area_name'] != null) ( @if($report['city_name'] != null){{ $report['city_name'] }}, @endif @if($report['area_name'] != null) {{ $report['area_name'] }} @endif ) @endif
{{\Carbon\Carbon::parse($report['created_at'])->format('d-m-Y h:i A')}}
₹ {{number_format((float)$report['dr_disc_amount'], 2, '.', '')}}
₹ {{number_format((float)$report['amount'], 2, '.', '')}}
No Data Available
Sub-Total Amount ₹ {{number_format((float)$subtotal_amount, 2, '.', '')}}
Total Patient Count {{$patient_count}}
Total Dr Discount Applied ₹ {{number_format((float)$total_dr_discount, 2, '.', '')}}
Total Discount Applied ₹ {{number_format((float)$total_discount, 2, '.', '')}}
Fee Collection Total Amount ₹ {{number_format((float)($net_amount), 2, '.', '')}}
@else

No Data Available

@endif
@else

Sorry !!! Unauthorized Access

@endif @section('externaljs') {{-- --}} @endsection