asdas
parent
6caa520c2d
commit
22fa2227c5
|
@ -8,21 +8,8 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body" id="show-modal-paket">
|
<div class="modal-body" id="show-modal-paket">
|
||||||
<div class="col-md-6 col-sm-6" id="ordered-extra-menus">
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<div class="row" style="justify-content: space-between;">
|
|
||||||
<input type="hidden" id="id-table-row-extra">
|
|
||||||
<h5 id="menu-utama-yang-terpilih"></h5>
|
|
||||||
<h6 id="harga-menu-utama-yang-terpilih"></h6>
|
|
||||||
</div>
|
|
||||||
<ul id="extra-menu-choised">
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12 col-sm-12">
|
<div class="col-8 col-sm-8">
|
||||||
<div class="card card-primary card-tabs">
|
<div class="card card-primary card-tabs">
|
||||||
<div class="card-header p-0 pt-1">
|
<div class="card-header p-0 pt-1">
|
||||||
<ul class="nav nav-tabs" id="custom-tabs-one-tab-martabak" role="tablist">
|
<ul class="nav nav-tabs" id="custom-tabs-one-tab-martabak" role="tablist">
|
||||||
|
@ -120,6 +107,19 @@
|
||||||
<!-- /.card -->
|
<!-- /.card -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-4 col-sm-4" id="ordered-extra-menus">
|
||||||
|
<ul style="margin-right:10px">
|
||||||
|
<li>
|
||||||
|
<div class="row" style="justify-content: space-between;">
|
||||||
|
<input type="hidden" id="id-table-row-extra">
|
||||||
|
<h5 id="menu-utama-yang-terpilih"></h5>
|
||||||
|
<h6 id="harga-menu-utama-yang-terpilih"></h6>
|
||||||
|
</div>
|
||||||
|
<ul id="extra-menu-choised">
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- /.button -->
|
<!-- /.button -->
|
||||||
|
|
|
@ -123,20 +123,40 @@
|
||||||
<table class="literely-table" style="width: 100%;">
|
<table class="literely-table" style="width: 100%;">
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach ($pesanan->detailPesanan as $item)
|
@foreach ($pesanan->detailPesanan as $item)
|
||||||
|
@if ($item->id_parent == null)
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width: 100px;" colspan="5">{{ $item->nama_produk }}
|
<td style="width: 100px;" colspan="5">
|
||||||
{{ $item->status_pesanan == 0 ? '(TAKEAWAY)' : ($item->status_pesanan == 3 ? '(CANCEL)' : '') }}
|
{{ $item->nama_produk }}{{ $item->status_pesanan == 0 ? '(TAKEAWAY)' : ($item->status_pesanan == 3 ? '(CANCEL)' : '') }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td style="text-align: left">{{ $item->jumlah_produk }}</td>
|
||||||
<td style="text-align: right">{{ $item->jumlah_produk }}</td>
|
<td style="text-align: left">
|
||||||
<td style="text-align: right">{{ convert_to_rupiah($item->harga_produk) }}</td>
|
{{ convert_to_rupiah($item->harga_produk) }}</td>
|
||||||
<td style="text-align: right;width: 30px">
|
<td style="text-align: right;width: 30px">
|
||||||
{{ $item->diskon_persen != '' || $item->diskon_persen != 0 || $item->diskon_persen != null ? $item->diskon_persen . '%' : '' }}
|
{{ $item->diskon_persen != '' || $item->diskon_persen != 0 || $item->diskon_persen != null ? $item->diskon_persen . '%' : '' }}
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align: right;width: 70px">{{ convert_to_rupiah($item->total_harga_produk) }}</td>
|
<td style="text-align: right;width: 70px">{{ convert_to_rupiah($item->harga_produk) }}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@php
|
||||||
|
$tampungid = 0;
|
||||||
|
$historyController = new App\Http\Controllers\Kasir\History();
|
||||||
|
$result = $historyController->additionalProduct($item->id);
|
||||||
|
@endphp
|
||||||
|
@foreach ($result as $item2)
|
||||||
|
@if ($item2->id_parent !== null && $item2->id_parent == $item->id)
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td style="text-align: left" colspan="2">
|
||||||
|
+ {{ $item2->jumlah }}x {{ $item2->nama_produk }}</td>
|
||||||
|
<td style="text-align: right;width: 70px" colspan="2">
|
||||||
|
{{ convert_to_rupiah($item2->total) }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -211,6 +231,7 @@
|
||||||
<table class="table" style="width: 100%;">
|
<table class="table" style="width: 100%;">
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach ($pesanan->detailPesanan as $item)
|
@foreach ($pesanan->detailPesanan as $item)
|
||||||
|
@if ($item->id_parent == null)
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width: 80px;" colspan="3">
|
<td style="width: 80px;" colspan="3">
|
||||||
<h4>
|
<h4>
|
||||||
|
@ -226,6 +247,21 @@
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@php
|
||||||
|
$tampungid = 0;
|
||||||
|
$historyController = new App\Http\Controllers\Kasir\History();
|
||||||
|
$result = $historyController->additionalProduct($item->id);
|
||||||
|
@endphp
|
||||||
|
@foreach ($result as $item2)
|
||||||
|
@if ($item2->id_parent !== null && $item2->id_parent == $item->id)
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td style="text-align: left" colspan="2">
|
||||||
|
+ {{ $item2->jumlah }}x {{ $item2->nama_produk }}</td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -239,12 +239,24 @@
|
||||||
<table class="table" style="width: 100%;">
|
<table class="table" style="width: 100%;">
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach ($pesanan->detailPesanan as $item)
|
@foreach ($pesanan->detailPesanan as $item)
|
||||||
|
@if ($item->id_parent == null)
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width: 80px;" colspan="3">
|
<td style="width: 80px;" colspan="3">
|
||||||
<h4>
|
<h4>
|
||||||
({{ $item->jumlah_produk }} X)
|
({{ $item->jumlah_produk }} X)
|
||||||
{{ $item->nama_produk }}{{ $item->status_pesanan == 0 ? '(TAKEAWAY)' : ($item->status_pesanan == 3 ? '(CANCEL)' : '') }}
|
{{ $item->nama_produk }}
|
||||||
|
{{ $item->status_pesanan == 0 ? '(TAKEAWAY)' : ($item->status_pesanan == 3 ? '(CANCEL)' : '') }}
|
||||||
</h4>
|
</h4>
|
||||||
|
@php
|
||||||
|
$tampungid = 0;
|
||||||
|
$historyController = new App\Http\Controllers\Kasir\History();
|
||||||
|
$result = $historyController->additionalProduct($item->id);
|
||||||
|
@endphp
|
||||||
|
@foreach ($result as $item2)
|
||||||
|
@if ($item2->id_parent !== null && $item2->id_parent == $item->id)
|
||||||
|
+ {{ $item2->jumlah }}x {{ $item2->nama_produk }}
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
@if ($item->keterangan_produk != '')
|
@if ($item->keterangan_produk != '')
|
||||||
<p>
|
<p>
|
||||||
ket: {{ $item->keterangan_produk }}
|
ket: {{ $item->keterangan_produk }}
|
||||||
|
@ -253,6 +265,7 @@
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue