@extends('tenant.representatives.representative-tabs') @php $activeTab = 'representatives'; @endphp @section('style') @endsection @section('breadcrumb') @php $breadcrumb_items[ __('breadcrumb.home')] = '/'; $breadcrumb_items[ __('breadcrumb.representatives')] = '#'; @endphp @include('tenant.layouts.breadcrumb', [ 'items' => $breadcrumb_items, ]) @endsection @section('sidebar') @include('tenant.layouts.sidebar', ['activeItem' => 'representatives.index']) @endsection @section('content-field')

@php $selected_receivable_ids = request('receivable_ids')?? []; @endphp

@php $selected_branch_ids = request('branch_ids')?? []; @endphp


{{--


--}}

@lang('representatives/index.representatives')

@can('representatives-representatives-add') @lang('representatives/index.add_representative') @endcan
@php $table_options = [ 'lang' => ['noAvailableData' => __('noAvailableData.no_representatives')], ]; @endphp {{-- --}} {{-- --}} @foreach ($representatives as $representative) {{-- --}} {{-- --}} @endforeach @if ($representatives->isEmpty()) @endif
# @lang('representatives/index.representative_name') @lang('representatives/index.user_name') @lang('representatives/index.phone_number') @lang('representatives/index.warehouses') @lang('representatives/index.receivables') @lang('representatives/index.commission_rate') @lang('representatives/index.sales_representative') @lang('representatives/index.collection_representative')@lang('representatives/index.delivery_representative') @lang('representatives/index.cash_van_representative')@lang('general.procedures')
{{ $loop->iteration }} {{ $representative->name }} {{ $representative->username }} {{ $representative->phone }} @foreach ($representative->branch as $branch) {{ $branch->name }}, @endforeach @foreach ($representative->receivable_account as $account) {{ $account->name }}, @endforeach {{ $representative->commission_rate }} {{ $representative->is_saler == 0 ? 'لا' : 'نعم' }} {{ $representative->is_collector == 0 ? 'لا' : 'نعم' }}{{ $representative->is_delivery == 0 ? 'لا' : 'نعم' }}{{ $representative->is_cash_van == 0 ? 'لا' : 'نعم' }} @can('representatives-representatives-edit')
  • @lang('general.edit')
  • @endcan @can('representatives-representatives-delete')
  • @csrf @method('delete')
  • @endcan
    @lang('representatives/index.no_representatives_yet')
    @endsection @push('script') @endpush