@section('title', $titleContent)
@section('head')
@endsection
@include('admin/includes/header')
@php
/* cada atalho guarda os outros filtros: produtora, periodo e busca se somam */
$linkTo = function (array $extra) use ($type) {
$query = array_filter(
array_merge(request()->only(['period', 'provider', 'search']), $extra),
function ($one) { return $one !== null && $one !== ''; }
);
return route('admin.contents', array_merge([$type], $query));
};
@endphp
@if (\Session::has('success'))
{!! \Session::get('success') !!}
@php Session::forget('success'); @endphp
@endif
@if($providers->count() > 1)
@endif
@if($allContents->count() == 0)
Nenhum conteúdo encontrado.
@else
| Nome |
@if($type == '2')
Período |
@endif
Última atualização |
Ações |
@foreach($allContents as $content)
@php $quando = strtotime((string) $content->last_update); @endphp
|
{{ $content->name }}
{{ ['pt' => 'Portugal', 'en' => 'Inglês', 'es' => 'Espanhol'][$content->lang] ?? 'Brasil' }}
@if(! $provider && trim((string) $content->provider) !== '')
{{ $content->provider }}
@endif
@if($content->status != '1')
desativado
@endif
@if(($content->source ?? 'link') === 'pack')
pack
@endif
|
@if($type == '2')
{{ $content->period == '1' ? 'Seg a sex' : ($content->period == '2' ? 'Sáb e dom' : 'Sem informação') }}
|
@endif
{{ $quando > 0 ? date('d/m/Y H:i', $quando) : '--' }}
|
|
@endforeach
@endif
{{ $allContents->links('vendor.pagination.default') }}
@include('admin/includes/footer')