@extends('layouts.app') @section('title', 'Historique des Ventes') @section('content')
| Date/Heure | N° Ticket | Patient | Centre de santé | Type consultation | Médecin | Montant | Paiement | Actions |
|---|---|---|---|---|---|---|---|---|
|
{{ $sale->created_at->format('d/m/Y') }}
{{ $sale->created_at->format('H:i') }} |
{{ $sale->receipt_number }} |
{{ $sale->patient->name }}
{{ $sale->patient->phone }} |
{{ $sale->healthCenter->name }} | {{ ucfirst(str_replace('_', ' ', $sale->consultation_type)) }} | @if($sale->doctor) Dr. {{ $sale->doctor->name }} @else Non assigné @endif |
{{ number_format($sale->total_amount) }} FCFA
@if($sale->additional_fees > 0)
+ {{ number_format($sale->additional_fees) }} F frais sup. @endif |
@php
$paymentMethods = [
'cash' => ['Espèces', 'success'],
'card' => ['Carte', 'primary'],
'mobile_money' => ['Mobile Money', 'info']
];
[$method, $color] = $paymentMethods[$sale->payment_method] ?? ['Inconnu', 'secondary'];
@endphp
{{ $method }}
@if($sale->change_given > 0)
Rendu: {{ number_format($sale->change_given) }} F @endif |