@include('includes.sidebar')
Sales Order {{ $so->so_code }} - Voucher activation
| Invoice No. |
Value |
Voucher Code |
@foreach($so->so_invoice as $k1 => $v1)
@if(!empty($v1->so_invoice_item[0]))
| @if($v1->status == 1 && $v1->print_count>0) @else {{ $v1->invoice_code.' || '.$v1->so_invoice_item()->count() }} @endif |
@foreach($v1->so_invoice_item as $k2 => $v2)
@for($i=0;$i<$v2->qty;$i++)
{{ ($v2->sku_type == 1 ? 'Rp. '.number_format($v2->price, 0, ',', '.') : number_format($v2->price, ($v2->price<1 ? 1 : 0), ',', '.').' gram') }} |
@if(in_array($v2->sku_type, [1, 2]) && (empty($v2->campaign_voucher[0]->voucher_code) || ($i>count($v2->campaign_voucher)-1 && count($v2->campaign_voucher) < $v2->qty)))
@else
@endif
|
@endfor
@endforeach
@endif
@endforeach
@include('includes.footer')