@extends('layouts.app') @section('title', 'Grilles aveugles') @section('content')

Grilles aveugles

@php $demiSaison = [[1, 17], [18, 34]]; @endphp @foreach($demiSaison as [$debut, $fin])

J{{ $debut }} – J{{ $fin }}

@for($num = $debut; $num <= $fin; $num++) @endfor @foreach($utilisateursTries as $u) @php $pseudo = $u->uti_pseudo ?: $u->uti_nom.' '.$u->uti_prenom; @endphp @for($num = $debut; $num <= $fin; $num++) @php $cell = $dataByJournee[$num][$u->uti_id] ?? null; $v = $cell ? (int)($cell->juti_aveugle ?? 0) : 0; $cls = ($num < $firstNumero || $cell === null) ? '' : ($v > 0 ? 'cellProno risque41' : 'cellProno normal'); $val = ($num < $firstNumero || $cell === null || $v == 0) ? '' : $v; @endphp @endfor @endforeach @php $halfTotal = 0; @endphp @for($num = $debut; $num <= $fin; $num++) @php $t = $totauxJournee[$num] ?? 0; $halfTotal += $t; @endphp @endfor
JoueurJ{{ $num }}Total
{{ $pseudo }}
{{ $val }} {{ ($totauxUtilisateur[$u->uti_id] ?? 0) > 0 ? $totauxUtilisateur[$u->uti_id] : '' }}
Total{{ $t > 0 ? $t : '' }}{{ $halfTotal > 0 ? $halfTotal : '' }}
@endforeach
@endsection