@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
@csrf @method('PUT') @include('categories.partials.form')
@if($category->isProductCategory())

Move Selected Products

Select the products to move. Unselected products will remain in {{ $category->displayName() }}.
@if($products->isEmpty())
This category does not contain any products.
@elseif($targetCategories->isEmpty())
Create another product category before moving the selected products.
@else
@csrf
@foreach($products as $product) @endforeach
{{ $products->withQueryString()->links() }}
@endif
@endif @endsection