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

Categories

Category @if(!empty($category)) Update @else Create @endif
@if(Session::has('success'))
{{ Session::get('success') }}
@endif @if(Session::has('error'))
{{ Session::get('error') }}
@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
@if(!empty($category)) @method('PUT') @endif
Cancel
@endsection @section('scripts')