@extends('admin.layout.layout') @section('content')

{{ $category ? 'Edit Category' : 'Add Category' }}

@if ($message = Session::get('success')) @endif @if (Session::has('error')) @endif
@csrf @if($category) @method('PUT') @endif
@error('name')
{{ $message }}
@enderror
@error('status')
{{ $message }}
@enderror
@if ($message = Session::get('success')) @endif @if ($message = Session::get('error')) @endif
@endsection