@extends('admin.layouts.main') @section('content')

{{ @$data ? 'Edit' : 'Add' }} Content

@include('admin.includes.alert')
@csrf @if( @$data ) @method('PATCH') @endif
@if ($errors->has('title')) {{ $errors->first('title') }} @endif
image_url == null ? 'required' : '' }}> @if ($errors->has('image')) {{ $errors->first('image') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@endsection @push('script') @endpush