@extends('layouts.base') @section('title') Réclamation/ticket prêt à transmettre @endsection @section('style') @endsection @section('content')

Réclamation de gain

@if (!$claims->isEmpty())
@if (userHasPermission('can_generate_official_claim_note')) @endif {{-- --}}
@endif
{{-- --}} {{-- --}} {{-- --}} {{-- --}} @foreach($claims as $index => $c) {{-- --}} {{-- --}} {{-- --}} {{-- --}} @endforeach
#RéclamationDate réclamationRéclamant TéléphoneType de jeuxTicket Statut GainAction
{{ $index + 1 }}{{ $c->claim_reference }}{{ optional($c->claim_date)->format('d/m/Y H:i') }}{{ $c->claimant_first_name . " " . $c->claimant_last_name }} {{ $c->claimant_phone }}{{ optional($c->gameType)->name }}{{ $c->ticket_referenceId }} @php $statusId = optional($c->claimStatus)->id; $statusName = optional($c->claimStatus)->name; $badgeClass = match ($statusId) { 1 => 'bg-secondary', // Initiée 2 => 'bg-info', // Enregistrée 3 => 'bg-warning', // En attente 4 => 'bg-primary', // A transmettre 5 => 'bg-indigo', // Transmise 6 => 'bg-success', // Clôturée 7 => 'bg-danger', // Rejetée default => 'bg-secondary' }; @endphp {{ $statusName }} {{ number_format($c->gain_amount, 0, ',', ' ') }}
@endsection @section('script') @endsection