@extends('layouts.admin') @section('title') Admin | Categories @endsection @section('content')

Categories Or Tags

Category Or Tag @if(!empty($category)) Update @else Create @endif
@if(!empty($category))
$category->id])}}" method="POST" enctype="multipart/form-data"> @else @endif {{ csrf_field() }}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('slug')) {{ $errors->first('slug') }} @endif
@error('type')
{{ $message }}
@enderror
@if(!empty($category)) @method('PUT') @endif
Cancel
@endsection @section('scripts') @endsection