TaskA/resources/views/backend/user/edit-user.blade.php
2024-06-16 13:56:32 +05:45

80 lines
4.4 KiB
PHP

@extends('backend.layouts.app')
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<!-- /.card -->
<div class="card">
<!-- /.card-header -->
<div class="card-header">
<h3 class="card-title">Edit User</h3>
</div>
<!-- /.card-body -->
<div class="card-body">
<form role="form" action="{{ url('/update-user/' . $edit->id) }}" method="post">
@csrf
<div class="form-group row">
<label for="inputUsername3" class="col-sm-2 col-form-label">Username</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="inputUsername3" name="name"
placeholder="Enter your username" value="{{ $edit->name }}">
</div>
</div>
<div class="form-group row">
<label for="inputEmail3" class="col-sm-2 col-form-label">Email</label>
<div class="col-sm-10">
<input type="email" class="form-control" id="inputEmail3" name="email"
placeholder="Enter Your Email" value="{{ $edit->email }}">
</div>
</div>
<div class="form-group row">
<label for="inputPassword3" class="col-sm-2 col-form-label">Password</label>
<div class="col-sm-10">
<input type="password" class="form-control" id="inputPassword3" name="password"
placeholder="Password" value="{{ $edit->password }}">
</div>
</div>
<div class="form-group row">
<label for="role" class="col-sm-2 col-form-label">User Role</label>
<div class="col-sm-10">
<select class="form-control" name="role" id="exampleFormControlSelect1">
<option value="Admin"{{ 'Admin' == $edit->role ? 'selected' : '' }}>Admin
</option>
<option value="Manager"{{ 'Manager' == $edit->role ? 'selected' : '' }}>
Manager
</option>
<option value="Customer"{{ 'Customer' == $edit->role ? 'selected' : '' }}>
Customer
</option>
</select>
</div>
</div>
<div class="form-group row">
<div class="col-sm-10 offset-sm-2">
<button type="submit" class="btn btn-info">Update</button>
</div>
</div>
</form>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
@endsection