@if(!empty($voucher)) @php $voucher = $voucher[0]; if ($voucher['deal_voucher']['deal'] != "") { $deals = $voucher['deal_voucher']['deal']; } // separate date & time $voucher_expired = date('d/m/Y H:i', strtotime($voucher['voucher_expired_at'])); $voucher_expired = explode(" ", $voucher_expired); $voucher_expired_date = $voucher_expired[0]; $voucher_expired_time = $voucher_expired[1]; @endphp @if($voucher['redeemed_at'] != null && $voucher['used_at'] == null)
@endif
{{ $deals['deals_title'] }}
@if($voucher['used_at'] == null)
Masa berlaku hingga {{ $voucher_expired_date }} {{ $voucher_expired_time }}
@endif
@if($voucher['redeemed_at'] != null && $voucher['used_at'] == null)
Tampilkan Kode QR di bawah ke kasir
Kode Kupon
{{ $voucher['deal_voucher']['voucher_code'] }}
@endif @if($deals['deals_description'] != "")
DESKRIPSI
{!! $deals['deals_description'] !!}
@endif
@if($voucher['redeemed_at'] != null) OUTLET @else TERSEDIA DI OUTLET INI @endif
@if($voucher['redeemed_at'] != null) @if(isset($voucher['outlet_name'])) {{$voucher['outlet_name']}} @endif @else @foreach($deals['outlet_by_city'] as $key => $outlet_city) @if(isset($outlet_city['city_name']))
{{ $outlet_city['city_name'] }}
@elseif($key!=0)
@endif @endforeach @endif
@if($voucher['redeemed_at'] == null) @endif
@else
Voucher is not found
@endif