@extends('public.resultados.layout')
@section('title', 'Operadores e Clubes')
@section('content')
@php
$cores = [
'LABREs' => ['bg'=>'#EBF5FB','titulo'=>'#1B4F8C','badge'=>'#AED6F1'],
'BRAZIL' => ['bg'=>'#EAFAF1','titulo'=>'#1E8449','badge'=>'#A9DFBF'],
'OUTROS' => ['bg'=>'#FEFCE8','titulo'=>'#7D6608','badge'=>'#F9E79F'],
];
@endphp
@forelse($dados as $groupName => $clubes)
@php $cor = $cores[$groupName] ?? ['bg'=>'#f9f9f9','titulo'=>'#555','badge'=>'#ddd']; @endphp
{{-- Cabeçalho do grupo --}}
{{ $groupName }}
{{ count($clubes) }} clube(s)
@foreach($clubes as $clubNome => $info)
@php
if (strtoupper($groupName)==='BRAZIL' &&
strtoupper(substr(trim($clubNome),0,5))==='LABRE') continue;
@endphp
{{-- Cabeçalho do clube --}}
{{ $clubNome }}
Total: {{ number_format($info['club_total']) }}
| Callsign |
Pontos |
M1 (DXCC) |
M2 (UF) |
M3 (HQ) |
Final Score |
@php $totP=$totM1=$totM2=$totM3=$totF=0; @endphp
@foreach($info['calls'] as $op)
@php
$totP += $op->total_pontos;
$totM1 += $op->total_m1;
$totM2 += $op->total_m2;
$totM3 += $op->total_m3;
$totF += $op->final_score;
@endphp
|
{{ $op->call_sent }}
|
{{ number_format($op->total_pontos) }} |
{{ $op->total_m1 }} |
{{ $op->total_m2 }} |
{{ $op->total_m3 }} |
{{ number_format($op->final_score) }} |
@endforeach
{{-- Totais do clube --}}
| TOTAL |
{{ number_format($totP) }} |
{{ $totM1 }} |
{{ $totM2 }} |
{{ $totM3 }} |
{{ number_format($totF) }} |
@endforeach
@empty
Nenhum dado encontrado.
@endforelse
@endsection