@extends('super_admins.layouts.master') @section('title') Edit User @endsection @section('css') @endsection @section('content') @if ($errors->any()) @foreach ($errors->all() as $error) {{-- {{ $error }} --}} @endforeach @endif Edit User Home Users Edit User {{-- --}} Edit User @csrf @method('PUT') Name : @if ($errors->has('name')) {{ $errors->first('name') }} @endif Email : @if ($errors->has('email')) {{ $errors->first('email') }} @endif Password : @if ($errors->has('password')) {{ $errors->first('password') }} @endif Profile Image : @if (isset($user->profile_image_path)) @else -No Image Selected @endif @if ($errors->has('profile_image_path')) {{ $errors->first('profile_image_path') }} @endif @if (isset($tenants)) Select Tenant : @if (count($tenants) > 0) Please Select @foreach ($tenants as $tenant) tenant && $user->tenant->email && $user->tenant->email == $tenant->email ? 'selected' : '' }} value="{{ $tenant->id }}">{{ $tenant->name }} @endforeach @else No Tenant Exists @endif @if ($errors->has('tenant_id')) {{ $errors->first('tenant_id') }} @endif @endif @if (isset($roles)) Select Role : @if (count($roles) > 0) Please Select @foreach ($roles as $role) role_code ? 'selected' : '' }}> {{ $role->name }} @endforeach @else No Role Exists @endif @if ($errors->has('role')) {{ $errors->first('role') }} @endif @endif User Permissions : Select All Status is_active) checked @endif class="custom-control-input" id="customSwitch1" aria-describedby="IsActiveError" aria-invalid="true"> Select User To Be Active Or Not {{-- @if ($errors->has('is_active')) {{ $errors->first('is_active') }} @endif --}} {{-- --}} @endsection @section('scripts') @endsection