@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; @endphp @php $reopenModal = $errors->any() ? (old('form_context') === 'edit' ? 'edit' : 'create') : null; $reopenEditing = $reopenModal === 'edit' ? [ 'id' => old('category_id'), 'name' => old('name'), 'code' => old('code'), 'depreciation_method' => old('depreciation_method'), 'default_depreciation_rate_percent' => old('default_depreciation_rate_percent'), ] : null; @endphp
@forelse($categories as $index => $category) @empty @endforelse
# Name Code Depreciation Assets
{{ $index + 1 }} {{ $category->name }} {{ $category->code }} {{ $category->depreciation_method === 'none' ? 'None' : $category->default_depreciation_rate_percent.'%/yr (straight line)' }} {{ $category->assets_count }}
No categories yet.
@if ($errors->any() && old('form_context') !== 'edit')
{{ $errors->first() }}
@endif
@csrf
@if ($errors->any() && old('form_context') === 'edit')
{{ $errors->first() }}
@endif