@extends('layouts.admin') @section('page-title') {{ __('Manage Product-Service & Income-Expense Category') }} @endsection @section('breadcrumb') @endsection @section('action-btn')
@can('create constant category') @endcan
@endsection @section('content')
@foreach ($categories as $category) @endforeach
{{ __('Category') }} {{ __('Type') }} {{ __('Account') }} {{ __('Action') }}
{{ $category->name }} {{ array_key_exists($category->type, \App\Models\ProductServiceCategory::$catTypes) ? __(\App\Models\ProductServiceCategory::$catTypes[$category->type]) : 'Unknown Type' }} {{ !empty($category->chartAccount) ? $category->chartAccount->name : '-' }} @can('edit constant category') @endcan @can('delete constant category')
{!! Form::open([ 'method' => 'DELETE', 'route' => ['product-category.destroy', $category->id], 'id' => 'delete-form-' . $category->id, ]) !!} {!! Form::close() !!}
@endcan
@endsection