@extends('layouts.admin.admin_layout') @section('title', trans('applang.update_user')) @section('vendor-css') @endsection @section('page-css') @endsection @section('content')
@csrf @method('PATCH')
@error('first_name') {{ $message }} @enderror
@error('middle_name') {{ $message }} @enderror
@error('last_name') {{ $message }} @enderror
@if ($errors->has('gender')) {{ $errors->first('gender') }} @endif
@if ($errors->has('birth_date')) {{ $errors->first('birth_date') }} @endif
@error('email') {{ $message }} @enderror
@error('phone') {{ $message }} @enderror
@error('address_1') {{ $message }} @enderror
@error('address_2') {{ $message }} @enderror
@if ($errors->has('branch_id')) {{ $errors->first('branch_id') }} @endif
@if ($errors->has('status')) {{ $errors->first('birth_date') }} @endif
@if ($errors->has('department_id')) {{ $errors->first('department_id') }} @endif
@if ($errors->has('job_id')) {{ $errors->first('job_id') }} @endif
@error('password') {{ $message }} @enderror
system_not_user == '1' ? 'checked' : 'disabled'}} @click="open = false">
@if ($errors->has('system_not_user')) {{ $errors->first('system_not_user') }} @endif
system_user == '1' ? 'checked' : 'disabled'}}>
@if ($errors->has('roles_name')) {{ $errors->first('roles_name') }} @endif @if ($errors->has('system_user')) {{ $errors->first('system_user') }} @endif
@if($user->system_not_user == 1) @livewire('admin.create-user-roles-and-permissions', [ 'roles' => $roles, 'permissions' => $permissions, 'categories' => $categories, ]) @else @livewire('admin.edit-user-roles-and-permissions',[ 'user'=> $user, 'userRoles' => $userRoles, 'roles' => $roles, 'permissions' => $permissions, 'categories' => $categories ]) @endif
{{trans('applang.back_btn')}}
@endsection @section('page-vendor-js') @endsection @section('page-js') @endsection