@section('title', __('site.page_players_title')) @section('head') @endsection @php $breadcrumb = [ ['label' => __('general.top_menu_item_site')], ['label' => __('site.menu_item_6')], ['label' => __('site.menu_item_6_sub_6')], ]; /* the number is the same everywhere: column, players/playerNN folder, shot and label */ /* where each one sits, read from its own css: fixed at the bottom, or floating in a corner */ $footerPlayers = ['7', '10', '15']; $miniPlayers = ['6', '12']; $players = collect($allowed)->map(function ($code) use ($footerPlayers, $miniPlayers) { $pad = str_pad((string) $code, 2, '0', STR_PAD_LEFT); $img = '/players/' . $pad . '.png'; $spot = in_array((string) $code, $footerPlayers, true) ? 'footer' : (in_array((string) $code, $miniPlayers, true) ? 'mini' : null); return [ 'code' => (string) $code, 'label' => __('site.page_players_name', ['n' => $pad]), 'spot' => $spot, 'spotLabel' => $spot ? __('site.page_players_tag_' . $spot) : null, // enquanto a prévia não existe, o cartão mostra o lugar dela 'img' => file_exists(public_path('players/' . $pad . '.png')) ? $img : null, ]; }); @endphp @include('includes/header-novo')
@include('includes.breadcrumb')

{{ __('site.page_players_h1') }}

{{ __('site.page_players_sub') }}

@include('includes.flash') @if($apiError)

{{ $apiError }}

@else

{{ __('site.page_players_block') }}

@foreach($players as $item) @endforeach
@endif
@section('scripts') @endsection @include('includes/footer-novo')