pos-gis/resources/views/content/user/form.blade.php
2024-10-08 13:24:47 +07:00

80 lines
3.8 KiB
PHP

<x-other.modal id="mForm" title="Tambah Data" subTitle="Tambah Data {{$title}}" info="" separator="false" size="lg">
<x-slot name="action">
<button onclick="store()" type="button" class="btn btn-transparent-white font-weight-bold mr-2" id="znBtnLoader">
Simpan
</button>
{{-- <button onclick="store()" id="kt_btn_1" class="btn btn-transparent-white font-weight-bold mr-2">Simpan</button> --}}
</x-slot>
<x-slot name="content">
<form id="formData">
<input id="get_id" type="hidden" name="get_id" value="">
<div class="row">
<div class="col-md-8">
<h6>Data Pribadi</h6>
<div class="separator separator-dashed separator-border-1 mt-5 mb-5"></div>
<div class="row">
<div class="col-md-6">
<x-form.input title="Nama Lengkap" id="full_name" value="" />
<x-form.username title="Username" id="username" value="" />
<x-form.no title="No telepon/HP" maxlength="15" id="phone" value="" />
</div>
<div class="col-md-6">
<x-form.input title="E-Mail" id="email" value="" />
<x-form.textarea title="Alamat" id="address" value="" />
</div>
</div>
</div>
<div class="col-md-4">
<h6>Hak Akses User</h6>
<div class="separator separator-dashed separator-border-1 mt-5 mb-5"></div>
<x-form.select title="Hak Akses" id="role">
<x-slot name="option">
<option value=""></option>
@foreach($ref_role as $item)
<option value="{{$item->id}}">{{$item->description}}</option>
@endforeach
</x-slot>
</x-form.select>
<div id="viewMerchant">
<x-form.select title="Company" id="mid">
<x-slot name="option">
@php
$mer = \DB::table('merchant')->get();
@endphp
<option value=""></option>
@foreach($mer as $item)
<option value="{{$item->mid}}">{{$item->merchant_nm}}</option>
@endforeach
</x-slot>
</x-form.select>
</div>
<div id="viewKota">
<x-form.select title="Kota" id="id_kota">
<x-slot name="option">
@php
$mer = \DB::table('reff_city')->get();
@endphp
<option value=""></option>
@foreach($mer as $item)
<option value="{{$item->city_id}}">{{$item->city_nm}}</option>
@endforeach
</x-slot>
</x-form.select>
</div>
</div>
</div>
</form>
</x-slot>
</x-other.modal>