feat: implement admin user management interface and registration command

This commit is contained in:
Ümit Tunç
2026-04-28 21:41:20 +03:00
parent 7dfb13ffac
commit ae835c4c2f
5 changed files with 61 additions and 37 deletions
@@ -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">