@extends('layouts.app') @section('title', 'Rapport Pharmacie - Supervision') @push('styles') @endpush @section('content')

Rapport Pharmacie

Centre: {{ Auth::user()->healthCenter->name }}

Statistiques de la période ({{ \Carbon\Carbon::parse($startDate)->format('d/m/Y') }} - {{ \Carbon\Carbon::parse($endDate)->format('d/m/Y') }})
{{ $periodStats['total_sales'] }}
Ventes totales
{{ number_format($periodStats['total_revenue'], 0, ',', ' ') }}
Chiffre d'affaires (FCFA)
{{ number_format($periodStats['average_sale'], 0, ',', ' ') }}
Vente moyenne (FCFA)
{{ $periodStats['total_items'] }}
Articles vendus
Top 10 Médicaments
@if($topMedications->count() > 0) @foreach($topMedications as $index => $item)
{{ $index + 1 }}
{{ $item->medication->name }}
{{ $item->medication->brand }}
{{ $item->total_quantity }} unités

{{ number_format($item->total_revenue, 0, ',', ' ') }} FCFA
@if(!$loop->last)
@endif @endforeach @else

Aucune donnée pour cette période

@endif
Actions rapides
Détail des ventes
@if($sales->count() > 0)
@foreach($sales as $sale) @endforeach
N° Vente Patient Médicaments Sous-total Remise Total Paiement Date Actions
{{ $sale->sale_number }} {{ $sale->patient->full_name }}
{{ $sale->patient->phone }}
@foreach($sale->items as $item) • {{ $item->medication->name }} ({{ $item->quantity }}x) @endforeach {{ number_format($sale->subtotal, 0, ',', ' ') }} FCFA @if($sale->discount_amount > 0) -{{ number_format($sale->discount_amount, 0, ',', ' ') }} FCFA ({{ $sale->discount_percentage }}%) @else - @endif {{ number_format($sale->total_amount, 0, ',', ' ') }} FCFA {{ ucfirst($sale->payment_method) }} {{ $sale->sale_date->format('d/m/Y H:i') }} @if($sale->receipt) @endif
@else
Aucune vente trouvée

Aucune vente ne correspond aux critères de recherche.

Effectuer une vente
@endif
@endsection