|
|
@ -27,9 +27,10 @@ |
|
|
<br> |
|
|
<br> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
<tr> |
|
|
|
|
|
<?php $discountTotal = 0; ?>
|
|
|
<?php $discountTotal = 0; ?>
|
|
|
@foreach(collect($transaction->items)->chunk(10) as $chunckedItems) |
|
|
|
|
|
|
|
|
@foreach(collect($transaction->items)->chunk(30) as $chuncked30Items) |
|
|
|
|
|
<tr> |
|
|
|
|
|
@foreach($chuncked30Items->chunk(10) as $chunckedItems) |
|
|
<td style="width:250px;padding-right: 10px"> |
|
|
<td style="width:250px;padding-right: 10px"> |
|
|
<table class="main-table"> |
|
|
<table class="main-table"> |
|
|
<tbody> |
|
|
<tbody> |
|
|
@ -41,7 +42,7 @@ |
|
|
</tr> |
|
|
</tr> |
|
|
@foreach($chunckedItems as $key => $item) |
|
|
@foreach($chunckedItems as $key => $item) |
|
|
<tr> |
|
|
<tr> |
|
|
<td colspan="3">{{ $key + 1 }}) {{ $item['name'] }} ({{ $item['unit'] }})</td> |
|
|
|
|
|
|
|
|
<td class="strong" colspan="3">{{ $key + 1 }}) {{ $item['name'] }} ({{ $item['unit'] }})</td> |
|
|
</tr> |
|
|
</tr> |
|
|
<tr> |
|
|
<tr> |
|
|
<td class="text-center border-bottom">{{ $item['qty'] }}</td> |
|
|
<td class="text-center border-bottom">{{ $item['qty'] }}</td> |
|
|
@ -52,7 +53,7 @@ |
|
|
</tr> |
|
|
</tr> |
|
|
<?php $discountTotal += $item['item_discount_subtotal'] ?>
|
|
|
<?php $discountTotal += $item['item_discount_subtotal'] ?>
|
|
|
@endforeach |
|
|
@endforeach |
|
|
@if ($loop->last) |
|
|
|
|
|
|
|
|
@if ($loop->last && $loop->parent->last) |
|
|
<tr> |
|
|
<tr> |
|
|
<th colspan="2" class="text-right">{{ trans('transaction.subtotal') }} :</th> |
|
|
<th colspan="2" class="text-right">{{ trans('transaction.subtotal') }} :</th> |
|
|
<th class="text-right">{{ formatRp($transaction['total'] + $discountTotal) }}</th> |
|
|
<th class="text-right">{{ formatRp($transaction['total'] + $discountTotal) }}</th> |
|
|
@ -78,9 +79,8 @@ |
|
|
</table> |
|
|
</table> |
|
|
</td> |
|
|
</td> |
|
|
@endforeach |
|
|
@endforeach |
|
|
{{-- <td style="width:250px;"> </td> --}} |
|
|
|
|
|
{{-- <td style="width:250px;"> </td> --}} |
|
|
|
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
@endforeach |
|
|
</tbody> |
|
|
</tbody> |
|
|
</table> |
|
|
</table> |
|
|
@endsection |
|
|
@endsection |