@extends('admin.layouts.app')
@php
use App\Support\AdminOptions;
$editing = $news->exists;
$json = fn (?array $value) => $value ? json_encode($value, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) : '';
$formatButtons = [
['label' => 'Paragraf', 'icon' => 'paragraph', 'wrap' => "
|
"],
['label' => 'Judul H2', 'icon' => 'type-h2', 'wrap' => "|
"],
['label' => 'Judul H3', 'icon' => 'type-h3', 'wrap' => "|
"],
['label' => 'Tebal', 'icon' => 'type-bold', 'wrap' => "|"],
['label' => 'Miring', 'icon' => 'type-italic', 'wrap' => "|"],
['label' => 'Daftar', 'icon' => 'list-ul', 'wrap' => ""],
['label' => 'Daftar bernomor', 'icon' => 'list-ol', 'wrap' => "\n - |
\n
"],
['label' => 'Kutipan / Quote', 'icon' => 'quote', 'wrap' => "|
"],
['label' => 'Link', 'icon' => 'link-45deg', 'wrap' => '|'],
];
@endphp
@section('title', $editing ? 'Ubah Berita Esports' : 'Tulis Berita Esports')
@section('breadcrumb')
Berita Esports
{{ $editing ? 'Ubah' : 'Tulis' }}
@endsection
@section('actions')
@if ($editing)
@if ($news->is_published)
Lihat di Web
@endif
@endif
@endsection
@section('content')
@endsection