@extends('layouts.app') @section('title','Pharmacy Sales Report') @section('content')

Pharmacy Sales Report

@php $exportType = 'pharmacy-sales'; @endphp @include('reports._date-filter')

Total Sales

KES {{ number_format($sales->sum('total_price')) }}

Prescription (Rx)

KES {{ number_format($rx->sum('total_price')) }}

OTC Sales

KES {{ number_format($otc->sum('total_price')) }}

@foreach($sales as $s)@endforeach
DrugTypeQtyRevenueDate
{{ $s->drugItem->name ?? '-' }}{{ $s->prescription_id ? 'Rx' : 'OTC' }}{{ $s->quantity_dispensed }}{{ number_format($s->total_price) }}{{ $s->created_at->format('d M H:i') }}
@endsection