@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.details') }}
{{ Form::open(['method'=>'post','route' => 'streamline_bill.generate']) }}
{{ Form::text('processed_by', get_full_name($user, 'id', 'first_name', 'last_name', 'users'), ['class'=>'form-control required compulsory', 'readonly', 'id'=>'processed_by']) }}
{{ Form::close() }}
@if(count($patients) > 0) @foreach($patients as $id) @php $created_by = get_name($id, 'id', 'created_by', 'patients'); @endphp @endforeach @else @endif
{{ __('streamline_bills.patient_name') }} {{ __('streamline_bills.patient_number') }} {{ __('streamline_bills.first_visit') }} {{ __('streamline_bills.recorded_by') }}
{{ get_name($id, 'id', 'first_name', 'patients') }} {{ get_name($id, 'id', 'last_name', 'patients') }} {{ get_name($id, 'id', 'number', 'patients') }} {{ streamline_date(get_name($id, 'id', 'created_at', 'patients')) }}{{ get_full_name($created_by, 'id', 'first_name', 'last_name', 'users') }}
{{ __('streamline_bills.no_results_found') }}

{{ __('streamline_bills.number_of_patients') }}:
{{ count($patients) }}

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

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

{{ __('streamline_bills.total') }} : {{ ugandan_shillings($total) }}


{{ Form::open(['method'=>'post', 'route'=>'streamline_bill.transfer']) }} {{ Form::close() }}
@endsection @push('scripts') @endpush