@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', }; $activeTab = 'branches'; @endphp @section('breadcrumb') @include('tenant.layouts.breadcrumb', [ 'items' => [ $module == 'pos' ? __('breadcrumb.point_of_sale') : __('breadcrumb.warehouses') => '/warehouses/branches', __('breadcrumb.branches') => '#', ], ]) @endsection @extends($layout) @section('sidebar') @include('tenant.layouts.sidebar', ['activeItem' => ($module == 'pos' ? 'pos.branches' : 'warehouses.branches')]) @endsection @section('content-field')

@lang('warehouses/branches/index.warehouses')

@can('warehouses-branches-add') @lang('warehouses/branches/index.add_warehouse') @endcan
@forelse ($branches as $branch) @empty @endforelse
# @lang('warehouses/branches/index.warehouse_name') @lang('warehouses/branches/index.warehouse_type') @lang('warehouses/branches/index.responsible_name') @lang('warehouses/branches/index.monthly_purchase_limit') @lang('warehouses/branches/index.status') @lang('warehouses/branches/index.default') @lang('general.procedures')
{{ $loop->iteration }} {{ $branch->name }} {{ $branch->branch_type->name ?? '' }} {{ $branch->responsible_name }} {{ $branch->maximum_purchase_monthly ?? '---' }} {{ $branch->status ? 'فعّال' : 'غير فعّال' }}
@csrf is_default == 1 ? 'checked' : '' }}>
  • @lang('warehouses/branches/index.view')
  • @csrf
  • @can($module . '-branches-edit')
  • @lang('general.edit')
  • @endcan @can($module . '-branches-delete')
  • @csrf @method('delete')
  • @endcan
    @lang('warehouses/branches/index.no_warehouses_yet')
    @endsection @push('script') @endpush