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

@lang('representatives/update.edit_representative') ( {{ $representative->name }} )

@method('PUT') @csrf
{{--
is_saler ? 'checked' : '' }}>
is_collector ? 'checked' : '' }}>
is_delivery ? 'checked' : '' }}>
is_cash_van ? 'checked' : '' }}>
--}} @php $selectedBranchIds = $representative->branch->pluck('branch_id')->toArray(); $selectedReceivableIds = $representative->receivable_account->pluck('receivable_id')->toArray(); @endphp
{{-- Sections Of Module - Table --}}
@foreach ($sections as $section) @endforeach
count() ? 'checked' : '' }}> @lang('representatives/update.section') @lang('representatives/update.operations')
code, $selected_permissions) ? 'checked' : '' }}> {{ $section->name }}
@foreach ($section->functions as $function)
code . '-' . $function->code, $selected_permissions) ? 'checked' : '' }}>
@endforeach

@lang('settings/pos/users/edit.change_password')

@csrf
@endsection @push('script') @endpush