@extends('layouts.base') @section('title') Tickets à grattage @endsection @section('content')

Produits & Tranches

@foreach($products as $product)
{{ $product->name }}
@if($product->batches->count()) @foreach($product->batches as $batch) @endforeach
Code Tranche Année Plage Numéros Série Tickets en stock Montant total Date création
{{ $batch->code }} {{ $batch->year }} {{ $batch->start_serial_number }} - {{ $batch->end_serial_number }} {{ number_format($batch->total_tickets, 0, ',', ' ') }} {{ number_format($batch->total_amount, 2, ',', ' ') }} F CFA {{ $batch->created_at->format('d/m/Y H:i') }}
@else

Aucune tranche enregistrée pour ce produit.

@endif
@endforeach
@endsection