214 lines
9.6 KiB
PHP
214 lines
9.6 KiB
PHP
<x-other.modal id="mFormConf" title="Tambah Data" subTitle="Tambah Data {{$title}}" info="" separator="false" size="md">
|
|
<x-slot name="action">
|
|
<button onclick="storeCustomConf()" type="button" class="btn btn-transparent-white font-weight-bold mr-2" id="znBtnLoader">
|
|
Simpan
|
|
</button>
|
|
</x-slot>
|
|
<x-slot name="content">
|
|
<form id="formDataConf">
|
|
<input id="get_mid_conf" type="hidden" name="get_mid" value="">
|
|
<input id="get_outlet_id_conf" type="hidden" name="get_outlet_id" value="">
|
|
|
|
<div class="separator separator-dashed separator-border-1 mt-5 mb-5"></div>
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
<x-form.input title="MID Trx" id="mid_trx" value="" />
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|
|
|
|
|
|
</x-slot>
|
|
</x-other.modal>
|
|
|
|
<x-other.modal id="mForm" title="Tambah Data" subTitle="Tambah Data {{$title}}" info="" separator="false" size="md">
|
|
<x-slot name="action">
|
|
<button onclick="storeCustom()" type="button" class="btn btn-transparent-white font-weight-bold mr-2" id="znBtnLoader">
|
|
Simpan
|
|
</button>
|
|
</x-slot>
|
|
<x-slot name="content">
|
|
<form id="formData">
|
|
<input id="get_id" type="hidden" name="get_id" value="">
|
|
{{-- <input id="is_active" type="hidden" name="is_active" value=""> --}}
|
|
|
|
<div class="separator separator-dashed separator-border-1 mt-5 mb-5"></div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
@php
|
|
$ds = \DB::table("merchant")->get();
|
|
@endphp
|
|
<div class="form-group">
|
|
<div class="mb-2">Company</div>
|
|
<div id="block_merchant">
|
|
<select autocomplete="off" onchange="getTable()" class="form-control select2 znSelect2" style="width: 100%" name="mid" id="mid">
|
|
|
|
@foreach($ds as $item)
|
|
<option value="{{$item->mid}}">{{$item->merchant_nm}}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<x-form.input title="Nama Agent" id="outlet_nm" value="" />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<x-form.input title="Kode Agent" id="outlet_code" value="" />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<x-form.input title="NMID" id="nmid" value="" />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<x-form.select title="Biaya Layanan" id="is_charge_service">
|
|
<x-slot name="option">
|
|
<option value="f">Tidak</option>
|
|
<option value="t">Ya</option>
|
|
</x-slot>
|
|
</x-form.select>
|
|
</div>
|
|
<div id="isService" style="display: contents;">
|
|
<div class="col-md-6">
|
|
<x-form.no maxlength="2" title="Persentase Biaya Layanan" id="charge_service_prs" value="" />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col-md-12">
|
|
<x-form.textarea title="Alamat" id="address" value="" />
|
|
</div>
|
|
<div class="col-md-12">
|
|
<x-form.select title="Kota" id="city_id">
|
|
<x-slot name="option">
|
|
<option value=""></option>
|
|
@php
|
|
$ref = \DB::table('reff_city')
|
|
->when(Auth::user()->role == 3, function ($query) {
|
|
$query->where('city_id', Auth::user()->id_kota);
|
|
})->get();
|
|
@endphp
|
|
@foreach($ref as $item)
|
|
<option value="{{$item->city_id}}">{{$item->city_nm}}</option>
|
|
@endforeach
|
|
</x-slot>
|
|
</x-form.select>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<x-form.select title="Jenis Agent" id="outlet_type_id">
|
|
<x-slot name="option">
|
|
<option value=""></option>
|
|
@php
|
|
$ref = \DB::table('reff_outlet_type')->get();
|
|
@endphp
|
|
@foreach($ref as $item)
|
|
<option value="{{$item->outlet_type_id}}">{{$item->outlet_type_nm}}</option>
|
|
@endforeach
|
|
</x-slot>
|
|
</x-form.select>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<div class="separator separator-dashed separator-border-1 mt-5 mb-5"></div>
|
|
</div>
|
|
{{-- <div class="col-md-12">
|
|
@php
|
|
$ref_bank = DB::table('reff_bank')->where('is_active',true)->orderBy('seq')->get();
|
|
@endphp
|
|
<div class="mb-5">EDC Bank</div>
|
|
<table class="table">
|
|
@foreach ($ref_bank as $v)
|
|
<tr>
|
|
<td><label class="checkbox">
|
|
<input type="checkbox" name="outlet_bank[]" id="outlet_bank_{{$v->bank_code}}" value="{{$v->bank_code}}"/>
|
|
<span></span>
|
|
</label>
|
|
</td>
|
|
<td>{{$v->bank_name}}</td>
|
|
<td>{{$v->bank_code}}</td>
|
|
</tr>
|
|
@endforeach
|
|
|
|
</table>
|
|
</div> --}}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</form>
|
|
|
|
|
|
</x-slot>
|
|
</x-other.modal>
|
|
|
|
|
|
|
|
<x-other.modal id="mEdc" title="Link EDC" subTitle="Link EDC {{$title}}" info="" separator="false" size="xl">
|
|
<x-slot name="action">
|
|
{{-- <button onclick="storeEdc()" type="button" class="btn btn-transparent-white font-weight-bold mr-2" id="znBtnLoader">
|
|
Simpan
|
|
</button> --}}
|
|
</x-slot>
|
|
<x-slot name="content">
|
|
<form id="formDataEdc">
|
|
<input id="get_mid_edc" type="hidden" name="get_mid_edc" value="">
|
|
<input id="get_outlet_id_edc" type="hidden" name="get_outlet_id_edc" value="">
|
|
|
|
<div class="separator separator-dashed separator-border-1 mt-5 mb-5"></div>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<x-form.select title="Brand" id="id_brand">
|
|
<x-slot name="option">
|
|
<option value=""></option>
|
|
@php
|
|
$ref = \DB::table('reff_brand')->get();
|
|
@endphp
|
|
@foreach($ref as $item)
|
|
<option value="{{$item->id_brand}}">{{$item->name_brand}}</option>
|
|
@endforeach
|
|
</x-slot>
|
|
</x-form.select>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<x-form.select title="EDC Device" id="device_id">
|
|
<x-slot name="option">
|
|
</x-slot>
|
|
</x-form.select>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<button type="button" style="margin-top: 25px;" onclick="storeEdc();" class="btn btn-success mr-3">
|
|
<i class="la la-sync"></i>Link EDC<b></b>
|
|
</button>
|
|
</div>
|
|
<div class="col-md-12" id="viewList">
|
|
<hr>
|
|
<table class="table table-hover" id="tbListEDC">
|
|
<thead>
|
|
<tr>
|
|
<th>Device ID</th>
|
|
<th>Serial Number</th>
|
|
<th>IMEI</th>
|
|
<th>Brand</th>
|
|
<th>Model</th>
|
|
<th>Terminal ID</th>
|
|
<th>Act</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="list_edc">
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</form>
|
|
|
|
|
|
</x-slot>
|
|
</x-other.modal>
|
|
|