@extends('layouts.master') @section('content')

Form Loading Checkout

@csrf
@if(count($sme->voucher_card) > 0)
Voucher Card
@foreach($sme->voucher_card->groupby('product') as $key => $value)
@endforeach @foreach($sme->voucher_card->groupby('product') as $key => $value)
@php $count_prod = ''; $min = 0; @endphp @if(!empty($sn_return)) @foreach($sn_return as $row) @if(str_replace(" ", "_", strtoupper($row['product'])) == str_replace(" ", "_", strtoupper($key))) @php $count_prod .= $row['product'].','; @endphp @endif @endforeach @php $explode_count = explode(",",substr($count_prod,0,-1)); @endphp @if(count(array_filter($explode_count)) == count($explode_count)) @php $min = count($explode_count); @endphp @endif @endif
{{ $key }} {{ count($value)-$min }}
@foreach ($value as $inven) @if(!in_array($inven->serial_number, array_column($sn_return, 'serial_number')))
- {{ $inven->serial_number }} (Terjual)
@endif @endforeach
@if(!empty($retailers)) @foreach ($retailers->retailers as $i => $row) @if(str_replace(" ", "_", strtoupper($row->product)) == str_replace(" ", "_", strtoupper($key)))
product)) }}_{{ str_replace(" ", "_", $row->retailer) }}">
product))}}" readonly="readonly" value="{{ $row->qty }}"/>
product)) }}_{{ str_replace(" ", "_", $row->retailer) }}" ref="{{ $i }}" onclick="del_retailer(this);">
@endif @endforeach @endif
@endforeach
@endif @if(count($sme->evoucher) > 0)
eVoucher
Saldo Awal
Saldo Akhir
Terjual
@if(!empty($ev_end)) @foreach ($ev_end as $phone)
{{ $phone->msisdn }}
@endforeach
@else @foreach ($sme->evoucher as $phone)
{{ $phone->msisdn }}
@endforeach
@endif
@endif
@endsection @push('scripts') @endpush