@extends('layout.app') @section('content') @php $countPharmacie = $datas->where('sale_category', 'pharmacie')->count(); $countHospitalisation = $datas->where('sale_category', 'hospitalisation')->count(); @endphp
Ventes ({{ $datas->count() }})   Ajouter
Filtres rapides
@foreach($datas as $data) @endforeach
Date Vendeur Commande Type Total ({!! htmlentities(auth()->user()->company->currency_symbol, ENT_NOQUOTES, 'UTF-8') !!}) Actions
{{ $data->datetime->translatedFormat('D d M Y à H:i') }} {{ $data->user->name }} Voir @if($data->sale_category === 'hospitalisation') Hospitalisation @else Pharmacie @endif {{ number_format($data->total, 0, '', ' ') }} @if($data->invoice()) @endif @if(!$data->hasRelatedRecords() AND !auth()->user()->isComptable()) @endif
@include('invoice.partials.payment-modal') @endsection @push('scripts') @endpush