@extends('central.dashboard.layouts.master') @section('sidebar') @include('central.dashboard.layouts.sidebar', ['page' => 'users']) @endsection @section('style') @endsection @section('content')
@csrf @method('put') {{-- Start User Info Section --}}
@php $subdomain = $user->domains[0]->domain; $demo_pos_in_subdomain = strpos($subdomain, '-demo', 0); if ($demo_pos_in_subdomain !== false) { $subdomain = substr($subdomain, 0, $demo_pos_in_subdomain); } @endphp
@php $checked_account_type = old('account_type') ?? $user->account_type; @endphp
{{-- End User Info Section --}}
{{-- Start Modules Section --}}

تحديد أجزاء النظام المتاحة

@foreach ($modules as $module)
code, $availableModules) ? 'checked' : '' }}>
userModuleHasAllSections($module->code) ? 'checked' : '' }}>
@foreach ($module->sections as $section) @php $has_section = array_key_exists($module->code, $availableModules) && in_array($section->code, $availableModules[$module->code]); @endphp
@endforeach
@endforeach
{{-- End Modules Section --}} @php $has_rentals_module = array_key_exists('rentals', $availableModules); $has_rentals_in_old_request = is_array(old('modules')) && in_array('module-rentals', old('modules')); $show_rentals_count_inputs = $has_rentals_module || $has_rentals_in_old_request; $has_warehouses_module = array_key_exists('warehouses', $availableModules); $has_warehouses_in_old_request = is_array(old('modules')) && in_array('module-warehouses', old('modules')); $show_warehouses_count_inputs = $has_warehouses_module || $has_warehouses_in_old_request; $has_pos_module = array_key_exists('pos', $availableModules); $has_pos_in_old_request = is_array(old('modules')) && in_array('module-pos', old('modules')); $show_pos_count_inputs = $has_pos_module || $has_pos_in_old_request; @endphp
@foreach ($userDevices as $device) @endforeach

{{-- Change Password Form --}}

تغيير كلمة المرور

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