@extends('layouts.admin') @section('title', 'Edit Berita') @section('page_title', 'Edit Berita') @section('page_subtitle', 'Ubah konten berita yang telah dipublikasikan') @section('content')
Form Edit Berita
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
@error('title') {{ $message }} @enderror
Max 500 karakter @error('excerpt') {{ $message }} @enderror
@error('content') {{ $message }} @enderror
@if($news->image)
{{ $news->title }}
@endif Format: JPG, PNG, WebP. Ukuran maksimal: 5MB. Kosongkan jika tidak ingin mengubah @error('image') {{ $message }} @enderror
@error('category') {{ $message }} @enderror
published ? 'checked' : '' }}>
Batal
Informasi Berita

Slug

{{ $news->slug }}

Penulis

{{ $news->user->name }}

Dibuat

{{ $news->created_at->format('d M Y H:i') }}

Diubah

{{ $news->updated_at->format('d M Y H:i') }}

Views

{{ $news->views }}

Lihat di Website
@endsection @section('styles') @endsection @section('scripts') @endsection