@extends('tenant.accounting.accounting-tabs') @section('style') @endsection @section('breadcrumb') @include('tenant.layouts.breadcrumb', [ 'items' => [ __('breadcrumb.home') => '/', __('breadcrumb.accounting') => '/accounting/accounts', __('breadcrumb.cost_centers') => '#', ], ]) @endsection @section('sidebar') @include('tenant.layouts.sidebar', ['activeItem' => 'accounting.cost-centers']) @endsection @section('content-field')
@can('accounting-costCenterTree-add')
@endcan {{-- Add Cost Center Form --}} {{-- Delete Cost Center Form --}}
@csrf @method('DELETE')
{{-- Edit Cost Center Form --}}
{{-- Cost-Centers Tree --}}
    @foreach ($cost_centers as $cost_center) @include('tenant.accounting.cost-centers.item-tree-template', [ 'cost_center' => $cost_center, ]) @endforeach
{{-- Cost-Centers Table --}}

@lang('accounting/cost-center.cost_centers')

@forelse ($leaf_cost_centers as $cost_center) @empty @endforelse
# @lang('accounting/cost-center.arabic_name') @lang('accounting/cost-center.english_name') @lang('accounting/cost-center.belongs_to') @lang('accounting/cost-center.status') @lang('general.procedures')
{{ $loop->iteration }} {{ $cost_center->ar_name }} {{ $cost_center->en_name }} {{ $cost_center->parent ? $cost_center->parent->ar_name : '--' }} @if ($cost_center->status)
@csrf
{{ $cost_center->status_as_text }}
@else
@csrf
{{ $cost_center->status_as_text }}
@endif
@can('accounting-costCenterTree-edit')
  • @endcan @can('accounting-costCenterTree-delete')
  • @endcan
    @lang('accounting/cost-center.no_cost_centers_yet')
    {!! $leaf_cost_centers->links() !!}
    @endsection @push('script') @endpush