78 lines
4.8 KiB
PHP
78 lines
4.8 KiB
PHP
@include('components.theme.pages.header')
|
|
|
|
<section>
|
|
<!-- basic table -->
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
{{ Form::open(['route' => 'users.store']) }}
|
|
@csrf
|
|
@if(session()->has('success'))
|
|
<div class="alert alert-success">
|
|
{{ session()->get('success') }}
|
|
</div>
|
|
@else
|
|
@if(session()->has('error'))
|
|
<div class="alert alert-danger">
|
|
{{ session()->get('error') }}
|
|
</div>
|
|
@endif
|
|
@endif
|
|
<div class="row mb-4">
|
|
<div class="col">
|
|
<label >Email Address<sup class="text-danger">*</sup></label>
|
|
<input type="email" name="email" value="{{ old('email') }}" autocomplete="off" class="form-control form-control-solid mt-2 {{ $errors->has('email') ? 'is-invalid' : '' }}" placeholder="Enter Email Address">
|
|
@error('email') <small class="text-danger">{{ $message }}</small> @enderror
|
|
</div>
|
|
<div class="col">
|
|
<label >Full Name<sup class="text-danger">*</sup></label>
|
|
<input type="text" name="name" value="{{ old('name') }}" autocomplete="off" class="form-control form-control-solid mt-2 {{ $errors->has('name') ? 'is-invalid' : '' }}" placeholder="Enter Name">
|
|
@error('name') <small class="text-danger">{{ $message }}</small> @enderror
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group mb-4" data-kt-password-meter="true">
|
|
<label >Password<sup class="text-danger">*</sup></label>
|
|
<input type="text" name="password" value="{{ old('password') }}" autocomplete="off" class="form-control form-control-solid mt-2 {{ $errors->has('password') ? 'is-invalid' : '' }}" placeholder="Enter Password">
|
|
@error('password') <small class="text-danger">{{ $message }}</small> @enderror
|
|
</div>
|
|
<div class="row mb-4">
|
|
<div class="col">
|
|
<label >Roles<sup class="text-danger">*</sup></label>
|
|
<select name="level" class="form-control mt-2 {{ $errors->has('level') ? 'is-invalid' : '' }}">
|
|
@foreach ($roles as $role)
|
|
<option value="{{ $role->id }}">{{ $role->name }}</option>
|
|
@endforeach
|
|
</select>
|
|
@error('level') <small class="text-danger">{{ $message }}</small> @enderror
|
|
</div>
|
|
<!-- <div class="col">
|
|
<label >Status Account<sup class="text-danger">*</sup></label>
|
|
<select name="status" class="form-control mt-2 {{ $errors->has('status') ? 'is-invalid' : '' }}">
|
|
@foreach ([1,2,3,4] as $rolez)
|
|
@php $name = $rolez == 1 ? 'Active' : ($rolez == 2 ? 'Non Active' : ($rolez == 3 ? 'Deactivated' : 'Not Verified')) @endphp
|
|
<option value="{{ $rolez }}">{{ $name }}</option>
|
|
@endforeach
|
|
</select>
|
|
@error('status') <small class="text-danger">{{ $message }}</small> @enderror
|
|
</div> -->
|
|
<input type="hidden" value="1" name="status">
|
|
</div>
|
|
<!-- <div class="form-group mb-4">
|
|
<label >Thumbnail<sup class="ms-2 text-muted">(optional)</sup></label>
|
|
<input class="form-control form-control-solid mt-2 {{ $errors->has('thumbnail') ? 'is-invalid' : '' }}" type="file" name="images">
|
|
</div> -->
|
|
<div class="form-group mb-0">
|
|
<button type="submit" class="btn btn-primary">Save</button>
|
|
<a href="{{ route('users') }}" class="btn btn-light btn-light">Back</a>
|
|
</div>
|
|
{{ Form::close() }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
@include('components.theme.pages.footer')
|