@extends('layouts.app') @section('title', 'Résultats') @section('content')
{{ $message }}
@else| # | Joueur | @foreach($listeMatch as $match)
@if($match->equ_logo)
@if($match->equ_logo_v)
|
@endforeach
Pts | Bonus | Malus | Fil rouge |
|---|---|---|---|---|---|---|
| @foreach($listeMatch as $match) | @if($match->ren_result !== null && $match->ren_result !== '') {{ $match->ren_result }} – {{ $match->ren_result_v }} @else ? – ? @endif | @endforeach|||||
| {{ $pos + 1 }} |
|
@foreach($listeMatch as $match)
@php
$p = $ligne['pronos'][$match->ren_id] ?? null;
$sClass = 'normal';
$sClassRisque = 'pasrisque';
if ($p) {
$iRisque = (int)($p->pro_risques ?? 0);
$sClassRisque = $iRisque > 0 ? 'risque'.$iRisque.'1' : 'pasrisque';
$hasScore = ($match->ren_result !== null && $match->ren_result !== ''
&& $match->ren_result_v !== null && $match->ren_result_v !== '');
if ($hasScore) {
$dScore = (int)$match->ren_result - (int)$match->ren_result_v;
$dProno = (int)$p->pro_prono - (int)$p->pro_prono_v;
if ((int)$p->pro_prono == (int)$match->ren_result
&& (int)$p->pro_prono_v == (int)$match->ren_result_v) {
$sClass = 'BonScore';
} elseif (($dScore > 0 && $dProno > 0)
|| ($dScore == 0 && $dProno == 0)
|| ($dScore < 0 && $dProno < 0)) {
$sClass = 'BonResultat';
}
}
}
@endphp
@if($p) {{ $p->pro_prono }} - {{ $p->pro_prono_v }} @endif | @endforeach@if($juti || $ligne['points_live'] > 0) {{ $ligne['points_affichage'] }} @if(!$journee->jou_diffuser_resultats) * @endif @if($ligne['etat_fil_rouge'] == 1) ×2 @endif @endif | {{ ($juti && $juti->juti_bonus) ? $juti->juti_bonus : '' }} | {{ ($juti && $juti->juti_malus) ? $juti->juti_malus : '' }} | @if($ligne['etat_fil_rouge'] == 1) OUI @elseif($ligne['etat_fil_rouge'] == -1) Joué @else Non @endif |
Les résultats ne sont pas encore diffusés.
@endif @endif