@extends('layouts.admin') @section('title') Risultati @stop @section('content')
@php $capo = false; @endphp @foreach($games as $idx => $g) @php $color = "red"; foreach($g as $_g) { if ($_g->played) $color = "blue"; } if ($g[0]->type == 'RITORNO' && !$capo) { $capo = true; print "


"; } @endphp @endforeach

Classifica

@foreach($aRates as $r) @endforeach
Squadra Punti PG V N P GF GS DR
{{$r["team"]}} {{$r["POINTS"]}} {{$r["PG"]}} {{$r["V"]}} {{$r["N"]}} {{$r["P"]}} {{$r["GF"]}} {{$r["GS"]}} {{$r["DR"]}}

@foreach($aRates as $idx => $r) @if($r["penality"] != '') {{$r["penality"]}}
@endif @endforeach
@php $old = ''; @endphp @foreach($games as $idx => $g) @if($old == '' || $old != $g[0]->type)

{{$g[0]->type}}

@endif

   {!!str_replace('ANDATA', 'ª A', str_replace('RITORNO', 'ª R', $idx))!!}

@foreach($g as $gg) @endforeach
Data In casa Trasferta Risultato
{{date("d/m/Y", strtotime($gg->date))}} {!!$gg->getHomeTeam()->name!!} {!!$gg->getAwayTeam()->name!!} @if($gg->played) {{$gg->home_goals}} - {{$gg->away_goals}} @endif

@php $old = $g[0]->type; @endphp @endforeach
Indietro
@stop