@extends('layouts.master') @section('page_header') Home @endsection @section('content') @can('view','App\Payment')
{{--Patient Info--}}

{{$clinic->patients()->count()}}

Patients Registered

More info
{{--Prescription Info--}}

{{$prescriptionCount}}

Prescriptions Issued

More info
{{--Payments--}}

$ {{$payments}}

Total Payments

More info
{{--Stocks--}}

{{$clinic->drugs()->where('quantity','<',100)->count()}}

Stocks Running Low

More info
@endcan

Patient Visits - Last 6 months

@if(count($stats['visits']['m'])<2) {{-- When no stats available to be shown --}}

Not Enough Records Found!

There are no enough records to show statistic of the clinic. This will be available once you start inserting prescriptions.

@else
@endif
@if(count($stats['visits']['m'])>=2) @endif @endsection