@section('title', __('general.header_web_players_title')) @section('head') @endsection @php $breadcrumb = [ ['label' => __('general.header_nav_web')], ['label' => __('general.header_web_players_title'), 'url' => route('radio.widgets.r')], ['label' => __('general.widgets_players_bar')], ]; /** * O mesmo numero serve de tudo: imagem de previa, rotulo e trecho da url. * A porta vai cifrada porque o player publico e quem a decifra. */ $hash = str_replace('/', 'brascsep', EncryptBras($siteData->stream_port)); /* cada barra tem a altura do proprio desenho; sem ela o iframe estica */ $models = collect([ ['n' => '01', 'h' => 61], ['n' => '02', 'h' => 61], ['n' => '03', 'h' => 100], ['n' => '04', 'h' => 61], ['n' => '05', 'h' => 61], ['n' => '06', 'h' => 80], ['n' => '07', 'h' => 80], ['n' => '08', 'h' => 80], ['n' => '09', 'h' => 88], ])->map(function ($model) use ($hash) { return [ 'label' => __('general.widgets_model_n', ['number' => $model['n']]), 'img' => '/players/style' . $model['n'] . '.png', 'url' => rtrim(config('app.url'), '/') . '/player/' . $model['n'] . '/' . $hash, 'height' => $model['h'], ]; }); @endphp @include('includes/header-novo')
@include('includes.breadcrumb') @include('includes.flash')

{{ __('general.header_web_players_title') }}

{{ __('general.widgets_page_sub') }}

@include('widgets.side')

{{ __('general.widgets_players_bar') }}

{{ __('general.widgets_bar_sub') }}

@foreach($models as $model) @endforeach
@include('includes.player-code-modal')
@section('scripts') @endsection @include('includes/footer-novo')