change font style
parent
9560438af2
commit
a9b9b29fea
|
@ -9,39 +9,42 @@ use Illuminate\Http\Request;
|
||||||
|
|
||||||
class History extends Controller
|
class History extends Controller
|
||||||
{
|
{
|
||||||
public function index(){
|
public function index()
|
||||||
return view('pages.history.index');
|
{
|
||||||
}
|
return view('pages.History.index');
|
||||||
|
}
|
||||||
|
|
||||||
public function getDataHistory(){
|
public function getDataHistory()
|
||||||
$data = Pesanan::with(['detailPesanan', 'user'])->get();
|
{
|
||||||
$nomor = 1;
|
$data = Pesanan::with(['detailPesanan', 'user'])->get();
|
||||||
|
$nomor = 1;
|
||||||
|
|
||||||
return $datatables = datatables()
|
return $datatables = datatables()
|
||||||
->of($data)
|
->of($data)
|
||||||
->addColumn('nomor', function($data) use (&$nomor){
|
->addColumn('nomor', function ($data) use (&$nomor) {
|
||||||
return $nomor++;
|
return $nomor++;
|
||||||
})
|
})
|
||||||
->addColumn('nama_user', function($data) {
|
->addColumn('nama_user', function ($data) {
|
||||||
return $data->user->name;
|
return $data->user->name;
|
||||||
})
|
})
|
||||||
->addColumn('created_at', function($data) {
|
->addColumn('created_at', function ($data) {
|
||||||
return \Carbon\Carbon::parse($data->created_at)->format('d F Y H:i:s');
|
return \Carbon\Carbon::parse($data->created_at)->format('d F Y H:i:s');
|
||||||
})
|
})
|
||||||
->addColumn('grand_total', function($data) {
|
->addColumn('grand_total', function ($data) {
|
||||||
return 'Rp ' . number_format($data->grand_total, 0, ',', '.');
|
return 'Rp ' . number_format($data->grand_total, 0, ',', '.');
|
||||||
})
|
})
|
||||||
->addColumn('ubah', function($data) {
|
->addColumn('ubah', function ($data) {
|
||||||
return '<div class="btn-group">
|
return '<div class="btn-group">
|
||||||
<a href="javascript:void(0)" onclick="print(\''.$data->id.'\')"><span class="btn btn-xs btn-success"><i class="fas fa-print"></i></span></a></div>';
|
<a href="javascript:void(0)" onclick="print(\'' . $data->id . '\')"><span class="btn btn-xs btn-success"><i class="fas fa-print"></i></span></a></div>';
|
||||||
})
|
})
|
||||||
->rawColumns(['nomor', 'nama_user', 'created_at', 'grand_total', 'ubah'])
|
->rawColumns(['nomor', 'nama_user', 'created_at', 'grand_total', 'ubah'])
|
||||||
->make(true);
|
->make(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function print($id){
|
public function print($id)
|
||||||
$pesanan = \App\Models\Pesanan::with('detailPesanan', 'user')->find($id);
|
{
|
||||||
|
$pesanan = \App\Models\Pesanan::with('detailPesanan', 'user')->find($id);
|
||||||
|
|
||||||
return view('pages.kasir.print_dapur', compact('pesanan'));
|
return view('pages.Kasir.print_dapur', compact('pesanan'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
|
@ -6,15 +6,20 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
|
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
|
||||||
<title>Document</title>
|
<title>Document</title>
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
{{-- <link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> --}}
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Oswald&family=Roboto:wght@300;400&display=swap"
|
{{-- <link href="https://fonts.googleapis.com/css2?family=Oswald&family=Roboto:wght@300;400&display=swap"
|
||||||
rel="stylesheet">
|
rel="stylesheet"> --}}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@font-face {
|
||||||
|
font-family: Bitum;
|
||||||
|
src: url('/assets/font/Bitum.ttf');
|
||||||
|
}
|
||||||
|
|
||||||
@page {
|
@page {
|
||||||
margin: 0.2cm;
|
margin: 0cm;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
@ -22,7 +27,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
/* font-family: 'Oswald'; */
|
font-family: Bitum;
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
/* transform: scaleY(1.5); */
|
/* transform: scaleY(1.5); */
|
||||||
}
|
}
|
||||||
|
@ -70,7 +75,7 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<body style="width: 80mm;">
|
<body style="width: 58mm;">
|
||||||
<h2 style="text-align: center">Sepiring Telur Keriting</h2>
|
<h2 style="text-align: center">Sepiring Telur Keriting</h2>
|
||||||
<p style="text-align: center">Jln. Jawa No. 28A, Jember</p>
|
<p style="text-align: center">Jln. Jawa No. 28A, Jember</p>
|
||||||
<hr class="style2">
|
<hr class="style2">
|
||||||
|
@ -99,9 +104,7 @@
|
||||||
<td></td>
|
<td></td>
|
||||||
<td style="text-align: right">{{ $item->jumlah_produk }}</td>
|
<td style="text-align: right">{{ $item->jumlah_produk }}</td>
|
||||||
<td style="text-align: right">{{ convert_to_rupiah($item->harga_produk) }}</td>
|
<td style="text-align: right">{{ convert_to_rupiah($item->harga_produk) }}</td>
|
||||||
<td style="text-align: right;width: 30px">
|
<td style="text-align: right">{{ convert_to_rupiah($item->total_harga_produk) }}</td>
|
||||||
{{ $item->diskon_persen != '' ? $item->diskon_persen . '%' : '' }}</td>
|
|
||||||
<td style="text-align: right;width: 90px">{{ convert_to_rupiah($item->total_harga_produk) }}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
@ -6,15 +6,20 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
|
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
|
||||||
<title>Document</title>
|
<title>Document</title>
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
{{-- <link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> --}}
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Oswald&family=Roboto:wght@300;400&display=swap"
|
{{-- <link href="https://fonts.googleapis.com/css2?family=Oswald&family=Roboto:wght@300;400&display=swap"
|
||||||
rel="stylesheet">
|
rel="stylesheet"> --}}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@font-face {
|
||||||
|
font-family: Bitum;
|
||||||
|
src: url('/assets/font/Bitum.ttf');
|
||||||
|
}
|
||||||
|
|
||||||
@page {
|
@page {
|
||||||
margin: 0.2cm;
|
margin: 0cm;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
@ -22,7 +27,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
/* font-family: 'Oswald'; */
|
font-family: Bitum;
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
/* transform: scaleY(1.5); */
|
/* transform: scaleY(1.5); */
|
||||||
}
|
}
|
||||||
|
@ -70,7 +75,7 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<body style="width: 80mm;">
|
<body style="width: 58mm;">
|
||||||
<h2 style="text-align: center">Sepiring Telur Keriting</h2>
|
<h2 style="text-align: center">Sepiring Telur Keriting</h2>
|
||||||
<p style="text-align: center">Jln. Jawa No. 28A, Jember</p>
|
<p style="text-align: center">Jln. Jawa No. 28A, Jember</p>
|
||||||
<hr class="style2">
|
<hr class="style2">
|
||||||
|
|
|
@ -46,9 +46,10 @@
|
||||||
aria-labelledby="custom-tabs-four-{{ $item->kode_kelompok_kategori }}-tab">
|
aria-labelledby="custom-tabs-four-{{ $item->kode_kelompok_kategori }}-tab">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@if ($item->kode_kelompok_kategori == 'PAK-SKOM')
|
@if ($item->kode_kelompok_kategori == 'PAK-SKOM')
|
||||||
<div class="col" style="padding: 0px">
|
<div class="col-lg-12 col-md-6 col-sm-6" style="padding: 0px">
|
||||||
<div class="row" style="padding: 0px">
|
<div class="row" style="padding: 0px">
|
||||||
<div class="col-4 col-sm-3" style="margin-left: 0px;padding-left: 0px;">
|
<div class="col-xl-3 col-lg-4 col-md-4 col-sm-3"
|
||||||
|
style="margin-left: 0px;padding-left: 0px;">
|
||||||
<div class="nav flex-column nav-tabs h-100" id="vert-tabs-tab"
|
<div class="nav flex-column nav-tabs h-100" id="vert-tabs-tab"
|
||||||
role="tablist" aria-orientation="vertical">
|
role="tablist" aria-orientation="vertical">
|
||||||
|
|
||||||
|
@ -76,13 +77,13 @@
|
||||||
<div class="card card-warning card-outline"
|
<div class="card card-warning card-outline"
|
||||||
style="margin-top: auto;margin-right: 5px;height: auto;">
|
style="margin-top: auto;margin-right: 5px;height: auto;">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h5 class="card-title m-0" id="nama-paket">
|
<h6 class="text-sm m-0" id="nama-paket">
|
||||||
Paket Menu Terpilih
|
Paket Menu Terpilih
|
||||||
</h5>
|
</h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body" style="padding: 2px 20px 2px">
|
<div class="card-body" style="padding: 2px 20px 2px">
|
||||||
<ul style="padding: 0px 5px 0px;" id="menu-terpilih">
|
<ul style="padding: 0px 5px 0px;" id="menu-terpilih">
|
||||||
<li>
|
<li class="text=xs">
|
||||||
Pilih Paket Menu Terlebih Dahulu
|
Pilih Paket Menu Terlebih Dahulu
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -94,7 +95,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-8 col-sm-9" style="padding: 0px;">
|
<div class="col-xl-9 col-lg-8 col-md-8 col-sm-9" style="padding: 0px;">
|
||||||
<div class="card-body" style="height:700px;overflow-y:scroll;">
|
<div class="card-body" style="height:700px;overflow-y:scroll;">
|
||||||
<div class="tab-content" id="vert-tabs-tabContent">
|
<div class="tab-content" id="vert-tabs-tabContent">
|
||||||
<div class="tab-pane vert-tab-content fade text-left show active"
|
<div class="tab-pane vert-tab-content fade text-left show active"
|
||||||
|
@ -103,13 +104,14 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@foreach ($item->kelompokKategoriPivot as $key2 => $kelompokKategoriPivot)
|
@foreach ($item->kelompokKategoriPivot as $key2 => $kelompokKategoriPivot)
|
||||||
@if ($kelompokKategoriPivot->produk->urutan == 1)
|
@if ($kelompokKategoriPivot->produk->urutan == 1)
|
||||||
<div class="col-lg-4">
|
<div
|
||||||
|
class="col-xl-4 col-lg-6 col-md-4 col-sm-4">
|
||||||
<div onclick="selectPaket( {{ $kelompokKategoriPivot->produk }} );changeTab('vert-tabs-telur')"
|
<div onclick="selectPaket( {{ $kelompokKategoriPivot->produk }} );changeTab('vert-tabs-telur')"
|
||||||
class="card card-warning card-outline btn">
|
class="card card-warning card-outline btn">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h5 class="card-title m-0">
|
<h6 class="m-0 text-xs">
|
||||||
{{ $kelompokKategoriPivot->produk->nama_produk ?? '' }}
|
{{ $kelompokKategoriPivot->produk->nama_produk ?? '' }}
|
||||||
</h5>
|
</h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<img style="width: 100%;height: 100%;object-fit: cover;"
|
<img style="width: 100%;height: 100%;object-fit: cover;"
|
||||||
|
@ -132,13 +134,14 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@foreach ($item->kelompokKategoriPivot as $key2 => $kelompokKategoriPivot)
|
@foreach ($item->kelompokKategoriPivot as $key2 => $kelompokKategoriPivot)
|
||||||
@if ($kelompokKategoriPivot->produk->urutan == 2)
|
@if ($kelompokKategoriPivot->produk->urutan == 2)
|
||||||
<div class="col-lg-4">
|
<div
|
||||||
|
class="col-xl-4 col-lg-6 col-md-4 col-sm-4">
|
||||||
<div onclick="selectPaket( {{ $kelompokKategoriPivot->produk }} );changeTab('vert-tabs-sambel')"
|
<div onclick="selectPaket( {{ $kelompokKategoriPivot->produk }} );changeTab('vert-tabs-sambel')"
|
||||||
class="card card-warning card-outline btn">
|
class="card card-warning card-outline btn">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h5 class="card-title m-0">
|
<h6 class="m-0 text-xs">
|
||||||
{{ $kelompokKategoriPivot->produk->nama_produk ?? '' }}
|
{{ $kelompokKategoriPivot->produk->nama_produk ?? '' }}
|
||||||
</h5>
|
</h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<img style="width: 100%;height: 100%;object-fit: cover;"
|
<img style="width: 100%;height: 100%;object-fit: cover;"
|
||||||
|
@ -161,13 +164,14 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@foreach ($item->kelompokKategoriPivot as $key2 => $kelompokKategoriPivot)
|
@foreach ($item->kelompokKategoriPivot as $key2 => $kelompokKategoriPivot)
|
||||||
@if ($kelompokKategoriPivot->produk->urutan == 3)
|
@if ($kelompokKategoriPivot->produk->urutan == 3)
|
||||||
<div class="col-lg-4">
|
<div
|
||||||
|
class="col-xl-4 col-lg-6 col-md-4 col-sm-4">
|
||||||
<div onclick="selectPaket( {{ $kelompokKategoriPivot->produk }} );changeTab('vert-tabs-topping')"
|
<div onclick="selectPaket( {{ $kelompokKategoriPivot->produk }} );changeTab('vert-tabs-topping')"
|
||||||
class="card card-warning card-outline btn">
|
class="card card-warning card-outline btn">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h5 class="card-title m-0">
|
<h6 class="m-0 text-xs">
|
||||||
{{ $kelompokKategoriPivot->produk->nama_produk ?? '' }}
|
{{ $kelompokKategoriPivot->produk->nama_produk ?? '' }}
|
||||||
</h5>
|
</h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<img style="width: 100%;height: 100%;object-fit: cover;"
|
<img style="width: 100%;height: 100%;object-fit: cover;"
|
||||||
|
@ -190,13 +194,14 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@foreach ($item->kelompokKategoriPivot as $key2 => $kelompokKategoriPivot)
|
@foreach ($item->kelompokKategoriPivot as $key2 => $kelompokKategoriPivot)
|
||||||
@if ($kelompokKategoriPivot->produk->urutan == 4)
|
@if ($kelompokKategoriPivot->produk->urutan == 4)
|
||||||
<div class="col-lg-4">
|
<div
|
||||||
|
class="col-xl-4 col-lg-6 col-md-4 col-sm-4">
|
||||||
<div onclick="selectPaket( {{ $kelompokKategoriPivot->produk }} );changeTab('vert-tabs-free')"
|
<div onclick="selectPaket( {{ $kelompokKategoriPivot->produk }} );changeTab('vert-tabs-free')"
|
||||||
class="card card-warning card-outline btn">
|
class="card card-warning card-outline btn">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h5 class="card-title m-0">
|
<h6 class="m-0 text-xs">
|
||||||
{{ $kelompokKategoriPivot->produk->nama_produk ?? '' }}
|
{{ $kelompokKategoriPivot->produk->nama_produk ?? '' }}
|
||||||
</h5>
|
</h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<img style="width: 100%;height: 100%;object-fit: cover;"
|
<img style="width: 100%;height: 100%;object-fit: cover;"
|
||||||
|
@ -218,13 +223,14 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@foreach ($item->kelompokKategoriPivot as $key2 => $kelompokKategoriPivot)
|
@foreach ($item->kelompokKategoriPivot as $key2 => $kelompokKategoriPivot)
|
||||||
@if ($kelompokKategoriPivot->produk->urutan == 5)
|
@if ($kelompokKategoriPivot->produk->urutan == 5)
|
||||||
<div class="col-lg-4">
|
<div
|
||||||
|
class="col-xl-4 col-lg-6 col-md-4 col-sm-4">
|
||||||
<div onclick="selectPaket( {{ $kelompokKategoriPivot->produk }} )"
|
<div onclick="selectPaket( {{ $kelompokKategoriPivot->produk }} )"
|
||||||
class="card card-warning card-outline btn">
|
class="card card-warning card-outline btn">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h5 class="card-title m-0">
|
<h6 class="m-0 text-xs">
|
||||||
{{ $kelompokKategoriPivot->produk->nama_produk ?? '' }}
|
{{ $kelompokKategoriPivot->produk->nama_produk ?? '' }}
|
||||||
</h5>
|
</h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<img style="width: 100%;height: 100%;object-fit: cover;"
|
<img style="width: 100%;height: 100%;object-fit: cover;"
|
||||||
|
@ -250,13 +256,13 @@
|
||||||
@foreach ($item->kelompokKategoriPivot as $key2 => $kelompokKategoriPivot)
|
@foreach ($item->kelompokKategoriPivot as $key2 => $kelompokKategoriPivot)
|
||||||
{{-- Jika paket irit --}}
|
{{-- Jika paket irit --}}
|
||||||
@if ($kelompokKategoriPivot->kelompok_kategori_id == 2)
|
@if ($kelompokKategoriPivot->kelompok_kategori_id == 2)
|
||||||
<div class="col-lg-4">
|
<div class="col-xl-4 col-lg-6 col-md-6 col-sm-12">
|
||||||
<div class="card card-warning card-outline btn"
|
<div class="card card-warning card-outline btn"
|
||||||
onclick="aadMenu( {{ $kelompokKategoriPivot->produk }} )">
|
onclick="aadMenu( {{ $kelompokKategoriPivot->produk }} )">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h5 class="card-title m-0">
|
<h6 class="m-0 text-xs">
|
||||||
{{ $kelompokKategoriPivot->produk->nama_produk ?? '' }}
|
{{ $kelompokKategoriPivot->produk->nama_produk ?? '' }}
|
||||||
</h5>
|
</h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
@ -270,7 +276,7 @@
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<a class="col-6 col-md-12 col-lg-6 btn btn-warning"
|
<a class="col-sm-6 col-md-8 col-lg-12 btn btn-warning"
|
||||||
id="ordered-menus">Pesan</a>
|
id="ordered-menus">Pesan</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -284,13 +290,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<div class="col-lg-4">
|
<div class="col-xl-4 col-lg-6 col-md-6 col-sm-12">
|
||||||
<div class="card card-warning card-outline btn"
|
<div class="card card-warning card-outline btn"
|
||||||
onclick="aadMenu( {{ $kelompokKategoriPivot->produk }} )">
|
onclick="aadMenu( {{ $kelompokKategoriPivot->produk }} )">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h5 class="card-title m-0">
|
<h6 class="m-0 text-xs">
|
||||||
{{ $kelompokKategoriPivot->produk->nama_produk ?? '' }}
|
{{ $kelompokKategoriPivot->produk->nama_produk ?? '' }}
|
||||||
</h5>
|
</h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
@ -304,7 +310,7 @@
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<a class="col-6 col-md-12 col-lg-6 btn btn-warning"
|
<a class="col-sm-6 col-md-8 col-lg-12 btn btn-warning"
|
||||||
id="ordered-menus">Pesan</a>
|
id="ordered-menus">Pesan</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -323,7 +329,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.col-md-6 -->
|
<!-- /.col-md-6 -->
|
||||||
<div class="col-lg-4">
|
<div class="col-xl-4 col-lg-6 col-md-6 col-sm-12">
|
||||||
<div class="card card-warning card-outline">
|
<div class="card card-warning card-outline">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h5 class="col-lg-6 card-title m-0">Kode Pesanan
|
<h5 class="col-lg-6 card-title m-0">Kode Pesanan
|
||||||
|
@ -922,12 +928,12 @@
|
||||||
} else if (kembaliHidden < 0) {
|
} else if (kembaliHidden < 0) {
|
||||||
alert('Pembayaran kurang');
|
alert('Pembayaran kurang');
|
||||||
return false;
|
return false;
|
||||||
} else if (nomorMeja == '') {
|
|
||||||
alert('Nomor meja tidak boleh kosong');
|
|
||||||
return false;
|
|
||||||
} else if (namaPemesan == '') {
|
} else if (namaPemesan == '') {
|
||||||
alert('Nama pemesan tidak boleh kosong');
|
alert('Nama pemesan tidak boleh kosong');
|
||||||
return false;
|
return false;
|
||||||
|
} else if (nomorMeja == '') {
|
||||||
|
alert('Nomor meja tidak boleh kosong');
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1080,11 +1086,6 @@
|
||||||
var htmlEntitiesData = dataParse.replace(/\"/g, '"');
|
var htmlEntitiesData = dataParse.replace(/\"/g, '"');
|
||||||
// Tampilkan hasil
|
// Tampilkan hasil
|
||||||
var show_modal_paket = document.getElementById('show-modal-paket');
|
var show_modal_paket = document.getElementById('show-modal-paket');
|
||||||
if (result.gambar_produk != null) {
|
|
||||||
var gambar_produk = result.full_path;
|
|
||||||
} else {
|
|
||||||
var gambar_produk = "{{ asset('assets/images/menu_image.jpeg') }}";
|
|
||||||
}
|
|
||||||
show_modal_paket.innerHTML += `
|
show_modal_paket.innerHTML += `
|
||||||
<div class="card card-warning card-outline btn"
|
<div class="card card-warning card-outline btn"
|
||||||
onclick="aadMenu(${htmlEntitiesData});clearSelected()">
|
onclick="aadMenu(${htmlEntitiesData});clearSelected()">
|
||||||
|
@ -1096,7 +1097,7 @@
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<img style="width: 80%;height: 80%;object-fit: cover;"
|
<img style="width: 80%;height: 80%;object-fit: cover;"
|
||||||
src="${gambar_produk}"
|
src="${result.gambar_produk}"
|
||||||
alt="${result.nama_produk ?? ''}">
|
alt="${result.nama_produk ?? ''}">
|
||||||
<div class="col-md-12 mt-1"
|
<div class="col-md-12 mt-1"
|
||||||
style="align-items: center;align-content: center;">
|
style="align-items: center;align-content: center;">
|
||||||
|
|
Loading…
Reference in New Issue