feat: implement admin user management interface and registration command
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
use App\Fields;
|
||||
use App\User;
|
||||
|
||||
$teams = db("subcontractors")->get()->pluck("company_name_en")->toArray();
|
||||
try{
|
||||
$seviye = Contents::where("slug","user-level")->first();
|
||||
$seviye = strip_tags($seviye->html);
|
||||
@@ -214,12 +213,6 @@ columns : [
|
||||
'name',
|
||||
'name_ru',
|
||||
'level',
|
||||
{
|
||||
dataField: 'subcontructer', // provides column values
|
||||
lookup: {
|
||||
dataSource: <?php echo json_encode_tr(db("subcontractors")->select("company_name_en")->get()->pluck("company_name_en")) ?>
|
||||
}
|
||||
},
|
||||
'email',
|
||||
'recover',
|
||||
{
|
||||
@@ -360,7 +353,6 @@ window.setTimeout(function() {
|
||||
<tr>
|
||||
<td>{{e2("ID")}}</td>
|
||||
<td>{{e2("Name")}}</td>
|
||||
<td>{{e2("Team")}}</td>
|
||||
<td>{{e2("Level")}}</td>
|
||||
<td>{{e2("E-Mail")}}</td>
|
||||
<td>{{e2("Phone")}}</td>
|
||||
@@ -379,19 +371,6 @@ window.setTimeout(function() {
|
||||
<td>
|
||||
<input type="text" name="name" value="{{$u->name}}" table="users" data-id="{{$u->id}}" class="name{{$u->id}} form-control edit" />
|
||||
</td>
|
||||
<td>
|
||||
<select name="subcontructer" data-id="{{$u->id}}" class="form-control edit" table="users">
|
||||
<option value="">{{e2("Select")}}</option>
|
||||
<?php
|
||||
foreach($teams AS $s) {
|
||||
?>
|
||||
<option value="{{$s}}" <?php if($u->subcontructer == $s) echo "selected"; ?>>{{$s}}</option>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select name="level"data-id="{{$u->id}}" table="users" class="form-control edit">
|
||||
@if($seviye!=null)
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{{col("col-12 detail","User Detail")}}
|
||||
<?php
|
||||
if(isAdmin()) {
|
||||
$teams = db("subcontractors")->get()->pluck("company_name_en")->toArray();
|
||||
if(getisset("update")) {
|
||||
$post = $_POST;
|
||||
$pic = upload("pic","profile_pic/");
|
||||
@@ -78,20 +77,6 @@ if(isAdmin()) {
|
||||
<label for="">{{e2("Name Ru")}}: </label><input type="text" value="" name="name_ru"
|
||||
class="form-control">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="">{{e2("Team/Subconstructer")}}: </label>
|
||||
<select name="subcontructer" id="" class="form-control">
|
||||
<option value="">{{e2("Select")}}</option>
|
||||
<?php
|
||||
foreach($teams AS $s) {
|
||||
?>
|
||||
<option value="{{$s}}">{{$s}}</option>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="">{{e2("Date of Birth")}}: </label><input type="date" value="" name="date_of_birth"
|
||||
class="form-control">
|
||||
|
||||
Reference in New Issue
Block a user