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