@section('title', $titleContent)
@section('head')
@endsection
@include('admin/includes/header')
@if (\Session::has('success'))
{!! \Session::get('success') !!}
@php Session::forget('success'); @endphp
@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($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')