@extends('layouts.app') @section('title', 'Grilles aveugles') @section('content')
| Joueur | @for($num = $debut; $num <= $fin; $num++)J{{ $num }} | @endforTotal |
|---|---|---|
|
|
@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
{{ $val }} | @endfor{{ ($totauxUtilisateur[$u->uti_id] ?? 0) > 0 ? $totauxUtilisateur[$u->uti_id] : '' }} |
| Total | @php $halfTotal = 0; @endphp @for($num = $debut; $num <= $fin; $num++) @php $t = $totauxJournee[$num] ?? 0; $halfTotal += $t; @endphp{{ $t > 0 ? $t : '' }} | @endfor{{ $halfTotal > 0 ? $halfTotal : '' }} |