@extends('admin.layouts.app') @section('content')

{{ $discounts->total() }} réduction(s)

+ Nouvelle réduction
@forelse($discounts as $discount) @empty @endforelse
Nom Code Réduction Type Période Utilisation Statut Actions
{{ $discount->name }} @if($discount->coupon_code) {{ $discount->coupon_code }} @else Automatique @endif @if($discount->discount_type === 'percentage') {{ number_format($discount->discount_amount, 0) }} % @else {{ number_format($discount->discount_amount, 2, ',', ' ') }} € @endif @if($discount->free_shipping) + livraison offerte @endif {{ $discount->type === 'coupon' ? 'Coupon' : 'Auto' }} @if($discount->starts_at || $discount->ends_at) {{ $discount->starts_at?->format('d/m/Y') ?? '…' }} → {{ $discount->ends_at?->format('d/m/Y') ?? '…' }} @else Illimité @endif {{ $discount->usage_count }} @if($discount->usage_limit) / {{ $discount->usage_limit }} @endif @if($discount->is_active && $discount->isValid()) Actif @else Inactif @endif Modifier
@csrf @method('DELETE')
Aucune réduction.
@if($discounts->hasPages())
{{ $discounts->links() }}
@endif
@endsection