main
zeldaababil19 2024-03-28 19:05:16 +07:00
parent 6caa520c2d
commit 22fa2227c5
3 changed files with 105 additions and 56 deletions

View File

@ -8,21 +8,8 @@
</button>
</div>
<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="col-12 col-sm-12">
<div class="col-8 col-sm-8">
<div class="card card-primary card-tabs">
<div class="card-header p-0 pt-1">
<ul class="nav nav-tabs" id="custom-tabs-one-tab-martabak" role="tablist">
@ -120,6 +107,19 @@
<!-- /.card -->
</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>
<!-- /.button -->

View File

@ -123,20 +123,40 @@
<table class="literely-table" style="width: 100%;">
<tbody>
@foreach ($pesanan->detailPesanan as $item)
<tr>
<td style="width: 100px;" colspan="5">{{ $item->nama_produk }}
{{ $item->status_pesanan == 0 ? '(TAKEAWAY)' : ($item->status_pesanan == 3 ? '(CANCEL)' : '') }}
</td>
</tr>
<tr>
<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 != 0 || $item->diskon_persen != null ? $item->diskon_persen . '%' : '' }}
</td>
<td style="text-align: right;width: 70px">{{ convert_to_rupiah($item->total_harga_produk) }}</td>
</tr>
@if ($item->id_parent == null)
<tr>
<td style="width: 100px;" colspan="5">
{{ $item->nama_produk }}{{ $item->status_pesanan == 0 ? '(TAKEAWAY)' : ($item->status_pesanan == 3 ? '(CANCEL)' : '') }}
</td>
</tr>
<tr>
<td style="text-align: left">{{ $item->jumlah_produk }}</td>
<td style="text-align: left">
&nbsp;&nbsp;&nbsp;&nbsp;{{ convert_to_rupiah($item->harga_produk) }}</td>
<td style="text-align: right;width: 30px">
{{ $item->diskon_persen != '' || $item->diskon_persen != 0 || $item->diskon_persen != null ? $item->diskon_persen . '%' : '' }}
</td>
<td style="text-align: right;width: 70px">{{ convert_to_rupiah($item->harga_produk) }}
</td>
</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">
+ &nbsp;&nbsp;{{ $item2->jumlah }}x&nbsp;&nbsp;{{ $item2->nama_produk }}</td>
<td style="text-align: right;width: 70px" colspan="2">
{{ convert_to_rupiah($item2->total) }}
</td>
</tr>
@endif
@endforeach
@endif
@endforeach
</tbody>
</table>
@ -211,21 +231,37 @@
<table class="table" style="width: 100%;">
<tbody>
@foreach ($pesanan->detailPesanan as $item)
<tr>
<td style="width: 80px;" colspan="3">
<h4>
({{ $item->jumlah_produk }} X)
{{ $item->nama_produk }}
{{ $item->status_pesanan == 0 ? '(TAKEAWAY)' : ($item->status_pesanan == 3 ? '(CANCEL)' : '') }}
</h4>
@if ($item->keterangan_produk != '')
<p>
&nbsp;&nbsp;&nbsp;&nbsp; ket: {{ $item->keterangan_produk }}
</p>
<br>
@if ($item->id_parent == null)
<tr>
<td style="width: 80px;" colspan="3">
<h4>
({{ $item->jumlah_produk }} X)
{{ $item->nama_produk }}
{{ $item->status_pesanan == 0 ? '(TAKEAWAY)' : ($item->status_pesanan == 3 ? '(CANCEL)' : '') }}
</h4>
@if ($item->keterangan_produk != '')
<p>
&nbsp;&nbsp;&nbsp;&nbsp; ket: {{ $item->keterangan_produk }}
</p>
<br>
@endif
</td>
</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">
+ &nbsp;&nbsp;{{ $item2->jumlah }}x&nbsp;&nbsp;{{ $item2->nama_produk }}</td>
</tr>
@endif
</td>
</tr>
@endforeach
@endif
@endforeach
</tbody>
</table>

View File

@ -239,20 +239,33 @@
<table class="table" style="width: 100%;">
<tbody>
@foreach ($pesanan->detailPesanan as $item)
<tr>
<td style="width: 80px;" colspan="3">
<h4>
({{ $item->jumlah_produk }} X)
{{ $item->nama_produk }}{{ $item->status_pesanan == 0 ? '(TAKEAWAY)' : ($item->status_pesanan == 3 ? '(CANCEL)' : '') }}
</h4>
@if ($item->keterangan_produk != '')
<p>
&nbsp;&nbsp;&nbsp;&nbsp; ket: {{ $item->keterangan_produk }}
</p>
<br>
@endif
</td>
</tr>
@if ($item->id_parent == null)
<tr>
<td style="width: 80px;" colspan="3">
<h4>
({{ $item->jumlah_produk }} X)
{{ $item->nama_produk }}
{{ $item->status_pesanan == 0 ? '(TAKEAWAY)' : ($item->status_pesanan == 3 ? '(CANCEL)' : '') }}
</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)
&nbsp;+&nbsp;{{ $item2->jumlah }}x&nbsp;&nbsp;{{ $item2->nama_produk }}
@endif
@endforeach
@if ($item->keterangan_produk != '')
<p>
&nbsp;&nbsp;&nbsp;&nbsp; ket: {{ $item->keterangan_produk }}
</p>
<br>
@endif
</td>
</tr>
@endif
@endforeach
</tbody>
</table>