214 lines
9.4 KiB
PHP
214 lines
9.4 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="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">
|
|
<x-form.input title="Company Name" id="merchant_nm" value="" />
|
|
</div>
|
|
<div class="col-md-12">
|
|
<x-form.textarea title="Address" id="address" value="" />
|
|
</div>
|
|
<div class="col-md-4">
|
|
<x-form.no maxlength="15" title="Phone No" id="phone_no" value="" />
|
|
</div>
|
|
|
|
|
|
<div class="col-md-4">
|
|
<x-form.select title="Kota" id="kota">
|
|
<x-slot name="option">
|
|
<option value=""></option>
|
|
@php
|
|
$ref = \DB::table('reff_city')->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-4">
|
|
<x-form.input title="E-Mail" id="email" value="" />
|
|
</div> --}}
|
|
<div class="col-md-4">
|
|
<x-form.input title="Company Code" id="mid" value="" />
|
|
</div>
|
|
<div class="col-md-4" style="display: none;">
|
|
<x-form.select title="Hotel" id="is_hotel">
|
|
<x-slot name="option">
|
|
<option value="t">Ya</option>
|
|
<option value="f">Tidak</option>
|
|
</x-slot>
|
|
</x-form.select>
|
|
</div>
|
|
<div class="col-md-4" style="display: none;">
|
|
<x-form.select title="Restoran" id="is_resto">
|
|
<x-slot name="option">
|
|
<option value="t">Ya</option>
|
|
<option value="f">Tidak</option>
|
|
</x-slot>
|
|
</x-form.select>
|
|
</div>
|
|
{{-- <div class="col-md-4">
|
|
<x-form.no maxlength="13" title="NMID" id="nmid" value="" />
|
|
</div> --}}
|
|
|
|
</div>
|
|
|
|
|
|
{{-- <div class="separator separator-dashed separator-border-1 mt-5 mb-5"></div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div>Logo </div>
|
|
<div class="mb-5">
|
|
<small >Format Gambar PNG,JPG,JPEG maksimal 500 Kb. rekomendasi resolusi 800 x 800</small>
|
|
</div>
|
|
|
|
<div class="image-input" id="kt_image" style="display: block;margin-bottom: 10px;">
|
|
<div id="ava1" class="image-input-wrapper" style="background-image: url({{asset('img/no_img.png')}})"></div>
|
|
|
|
<label class="btn btn-xs btn-icon btn-circle btn-white btn-hover-text-primary btn-shadow" data-action="change" data-toggle="tooltip" title="" data-original-title="Pilih Foto">
|
|
<i class="fa fa-pen icon-sm text-muted"></i>
|
|
<input type="file" name="logo" accept=".png, .jpg, .jpeg"/>
|
|
<input type="hidden" name="profile_avatar_remove"/>
|
|
</label>
|
|
|
|
<span id="pic-cancel" class="btn btn-xs btn-icon btn-circle btn-white btn-hover-text-primary btn-shadow" data-action="cancel" data-toggle="tooltip" title="Hapus Foto">
|
|
<i class="ki ki-bold-close icon-xs text-muted"></i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div> --}}
|
|
|
|
</form>
|
|
|
|
|
|
</x-slot>
|
|
</x-other.modal>
|
|
|
|
<x-other.modal id="mEdc" title="Link EDC" subTitle="Link EDC {{$title}}" info="" separator="false" size="lg">
|
|
<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="formData">
|
|
<input id="get_mid" type="hidden" name="get_mid" 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">
|
|
{{-- <option value=""></option>
|
|
@php
|
|
$ref = \DB::table('device')->get();
|
|
@endphp
|
|
@foreach($ref as $item)
|
|
<option value="{{$item->device_id}}">{{$item->sn}}</option>
|
|
@endforeach --}}
|
|
</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">
|
|
<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>
|
|
|
|
<x-other.modal id="mTax" title="List Tax" subTitle="List Tax" info="" separator="false" size="md">
|
|
<x-slot name="action">
|
|
<button onclick="storeTax()" type="button" class="btn btn-transparent-white font-weight-bold mr-2" id="znBtnLoaderTax">
|
|
Simpan
|
|
</button>
|
|
</x-slot>
|
|
<x-slot name="content">
|
|
<form id="formDataTax">
|
|
<input id="get_mid_tax" type="hidden" name="get_mid_tax" value="">
|
|
|
|
<div class="separator separator-dashed separator-border-1 mt-5 mb-5"></div>
|
|
<div>
|
|
<button type="button" onclick="addTax()" class="btn btn-light-success mb-10">
|
|
<i class="la la-list"></i> Add Tax
|
|
</button>
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Tax</th>
|
|
<th style="width: 10px;">Act</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="list_tax">
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</form>
|
|
|
|
|
|
</x-slot>
|
|
</x-other.modal>
|
|
|