@extends('layouts.app')
@section('title', 'Edit Category')
@section('page_title', 'Edit Category')
@section('content')
Edit {{ $category->isExpenseCategory() ? 'Expense' : 'Product' }} Category
Back
@if(session('status')){{ session('status') }}
@endif
@if($errors->any()){{ $errors->first() }}
@endif
@if($category->isProductCategory())
@if($products->isEmpty())
This category does not contain any products.
@elseif($targetCategories->isEmpty())
Create another product category before moving the selected products.
@else
@endif
@endif
@endsection