@extends('layouts.main') @push('styles') @endpush @section('content')

{{ __('streamline_bills.streamline_bills') }}



@include('flash::message')

 {{ $hospital_information->name }}

{{ $hospital_information->phone_number }}, {{ $hospital_information->email }},
{{ get_name($hospital_information->sub_county,'id', 'name', 'subcounties') }}, {{ get_name($hospital_information->district,'id', 'name', 'districts') }},
{{ $hospital_information->country }}.

{{ __('streamline_bills.date') }} : {{ streamline_date_time(\Carbon\Carbon::now()->toDateTimeString()) }}



{{ __('streamline_bills.billing_date') }}
@php if(isset($report->time_frame)){ $time_frame = explode("&", $report->time_frame);} @endphp
{{ streamline_date(isset($time_frame[0]) ? streamline_date($time_frame[0]) : "" ) }} @if(isset($time_frame[1])) {{ __('streamline_bills.to') }} {{ streamline_date($time_frame[1]) }} @endif

@if(isset($report) > 0) @php $patients = explode("/", $report->patients); @endphp @foreach($patients as $id) @endforeach @else @endif
{{ __('streamline_bills.patient_name') }} {{ __('streamline_bills.patient_number') }} {{ __('streamline_bills.first_visit') }} {{ __('streamline_bills.recorded_by') }}
{{ get_full_name($id, 'id', 'first_name', 'last_name', 'patients') }} {{ get_name($id, 'id', 'number', 'patients') }}r @php $episode_date = \Streamline\Models\PatientEpisode::where('patient_id', $id)->pluck('created_at')->first(); echo streamline_date($episode_date); @endphp @php $recorded_by = \Streamline\Models\PatientEpisode::where('patient_id', $id)->pluck('created_by')->first(); echo get_full_name($recorded_by, 'id', 'first_name', 'last_name', 'users'); @endphp
{{ __('streamline_bills.no_records_found') }}

{{ __('streamline_bills.number_of_patients') }}:

{{ __('streamline_bills.cost_per_patient_annually') }} :
{{ ugandan_shillings(1000) }}

@php $total = count($patients) * 1000; @endphp

Total : {{ ugandan_shillings($total) }}


@endsection @push('scripts') @push('scripts') @endpush @endpush