@php $layout = match ($module) { 'rentals' => 'tenant.rentals.rentals-tabs', 'accounting' => 'tenant.accounting.accounting-tabs', 'warehouses' => 'tenant.warehouses.warehouses-tabs', 'pos' => 'tenant.pos.pos-tabs', default => 'tenant.accounting.accounting-tabs', }; @endphp @section('style') @endsection @extends($layout) @section('breadcrumb') @php $breadcrumb_items[__('breadcrumb.home')] = '/'; if ($module == 'warehouses') { $breadcrumb_items[__('breadcrumb.warehouses')] = '/warehouses/branches'; } elseif ($module == 'accounting') { $breadcrumb_items[__('breadcrumb.accounting')] = '/accounting/accounts'; } elseif ($module == 'rentals') { $breadcrumb_items[__('breadcrumb.rentals')] = '#'; } elseif ($module == 'pos') { $breadcrumb_items[__('breadcrumb.point_of_sale')] = '/pos'; } $breadcrumb_items[__('breadcrumb.receivables')] = route('tenant.receivables.index', ['module' => $module]); @endphp @include('tenant.layouts.breadcrumb', ['items' => $breadcrumb_items]) @endsection @section('sidebar') @include('tenant.layouts.sidebar', ['activeItem' => "{$module}.receivables"]) @endsection @section('content-field')
@php $data = [ 'module' => $module, 'tree_accounts' => $tree_accounts, 'receivable_types' => $receivable_types, 'receivable_accounts' => $receivable_accounts, 'statement_data' => $statement_data ]; @endphp {{-- Add New Receivable Account Modal --}} {{-- Import the receivables from the excel --}}
@endsection @push('script') @scriptag('build/js/vue-components/receivables-accounts-main-page.js') @endpush