@extends('backoffice.template.app') @section('script') @if (session('success')) @endif @endsection @section('content')

Entertainment / Index

Kategori Entertainment

@foreach ($categories as $i => $c) @endforeach
# Nama Action
{{ $i + 1 }} {{ $c->nama }}

Entertainments

Tambah
@foreach ($entertainments as $i => $e) @endforeach
# Judul Deskripsi File Tanggal Kategori Tipe Action
{{ $i + 1 }} {{ $e->judul }} {{ substr($e->deskripsi, 0, 49) . '...' }} @switch($e->tipe) @case('foto') foto @break @case('video') @break @endswitch {{ $e->tanggal }} {{ $e->category->nama ?? null }} {{ $e->tipe }}
{{-- MODAL SECTION --}} {{-- modal edit category --}} {{-- modal delete category --}} {{-- MODAL DELETE ENTERTAINMET --}} @endsection