@extends('layouts.layout')
@section('body_class', 'nav-md')
@section('css')
@endsection
@section('body_content')
@foreach($invoice->so_invoice_item as $key => $inv_item)
@foreach($inv_item->campaign_voucher as $key1 => $item)
@php
$oldGram = number_format($item->gram + 0, (fmod($item->gram,1)!=0.00 ? 1 : 0), ',', '.') . ' gram';
@endphp
{{ $item->campaign->type === 1 || (float) $item->gram > 0 ? (float) $item->gram . ' gram' : 'Rp. ' . number_format($item->nominal, 0, ',', '.') . ',-' }}
{{ $item->voucher_code }}
{{ date("Y", strtotime($item->campaign->berlaku_sampai)) }}
{{ date("m", strtotime($item->campaign->berlaku_sampai)) }}
{{ date("d", strtotime($item->campaign->berlaku_sampai)) }}
@endforeach
@endforeach
@endsection
@section('scripts')
@endsection