103 lines
4.4 KiB
PHP
103 lines
4.4 KiB
PHP
<x-other.modal id="mForm" title="Tambah Data" subTitle="Tambah Data {{$title}}" info="" separator="false" size="md">
|
|
<x-slot name="action">
|
|
<button onclick="store()" 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="Serial Number" id="sn" value="" />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<x-form.no maxlength="20" title="IMEI" id="imei" value="" />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<x-form.select title="Brand" 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-6">
|
|
<x-form.input title="Model" id="model" value="" />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<x-form.no maxlength="20" title="Terminal ID" id="tid" value="" />
|
|
</div>
|
|
{{-- <div class="col-md-12">
|
|
<x-form.select title="Merchant" id="mid">
|
|
<x-slot name="option">
|
|
<option value=""></option>
|
|
@php
|
|
$ref = \DB::table('merchant')->get();
|
|
@endphp
|
|
@foreach($ref as $item)
|
|
<option value="{{$item->mid}}">{{$item->merchant_nm}}</option>
|
|
@endforeach
|
|
</x-slot>
|
|
</x-form.select>
|
|
|
|
</div> --}}
|
|
|
|
</div>
|
|
</form>
|
|
|
|
|
|
</x-slot>
|
|
</x-other.modal>
|
|
|
|
@if (Auth::guard('admin')->user()->role == 1)
|
|
<x-other.modal id="mImport" title="Import Excel" subTitle="Import Excel {{$title}}" info="" separator="false" size="md">
|
|
<x-slot name="action">
|
|
<button onclick="actImportExcel()" type="button" class="btn btn-transparent-white font-weight-bold mr-2" id="znBtnLoader">
|
|
Import
|
|
</button>
|
|
</x-slot>
|
|
<x-slot name="content">
|
|
<form id="formDataExcel">
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<input type="file" style="
|
|
width: 100%;
|
|
background: white;
|
|
padding: 5px;
|
|
border-radius: 10px;
|
|
border: 1px solid #e1e1e1;" name="xls_file" id="xls_file">
|
|
{{-- <x-form.file typeFile="" title="File Excel" id="xls_file" value="" /> --}}
|
|
</div>
|
|
<div class="col-md-4">
|
|
<a href="/doc/template_device_import.xlsx" download class="btn btn-success mr-3">
|
|
<i class="la la-file-excel"></i>Template <b></b>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
<div id="viewValidate" style="
|
|
border: 1px dashed #cfcfcf;
|
|
border-radius: 10px;
|
|
padding: 10px 20px;
|
|
margin-top: 25px;
|
|
"><ul id="resultValidate" style="padding-left: 10px;"></ul></div>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
</x-slot>
|
|
</x-other.modal>
|
|
@endif
|
|
|