@extends('layouts.app') @section('title','Documents') @section('page-title','Documents commerciaux') @section('topbar-actions') @if(auth()->user()->isAdmin())
@foreach($types->take(3) as $type) {{ $type->label }} @endforeach
@endif @endsection @section('content')
Total
{{ $stats['total'] }}
Brouillons
{{ $stats['brouillon'] }}
Envoyés
{{ $stats['envoye'] }}
Validés
{{ $stats['valide'] }}
Total validé
{{ number_format($stats['total_ttc'],0,',',' ') }}
XAF TTC
@if(request()->hasAny(['search','type','status']))Reset@endif
@forelse($documents as $doc) @empty @endforelse
RéférenceTypeClientTotal TTCStatutDateActions
{{ $doc->reference }} {{ $doc->documentType?->label ?? $doc->type_code }} {{ $doc->client_nom }} {{ number_format($doc->total_ttc,0,',',' ') }} XAF {{ $doc->status_label }} {{ $doc->date_document->format('d/m/Y') }}
@if(auth()->user()->isAdmin())
@csrf @method('DELETE')
@endif

Aucun document

{{ $documents->firstItem() }}–{{ $documents->lastItem() }} sur {{ $documents->total() }}
{{ $documents->links() }}
@endsection