Shopify ID
Customer Name
Email Address
Contact Number
@if(count($customer->where('brand_code', $brand)) == 0)
No data found
@else @foreach($customer->where('brand_code', $brand) as $result)
{{$result['shopify_id']}}Copy ID
{{$result['Customer_Name']}}
{{$result['email']}}
{{$result['phone']}}

Available Promo

Promo Code
Promo Name
Valid Until
@if(count($promos->where('brand_code', $brand)->where('shopify_id', $result['shopify_id'])) == 0)
No Voucher found
@else @foreach($promos->where('brand_code', $brand)->where('shopify_id', $result['shopify_id']) as $result1)
{{$result1['promo_code']}}
{{$result1['promo_description']}}
{{date("d-M-Y h:i:s A", strtotime($result1['valid_until']))}}
@endforeach @endif

Used Promo

Promo Code
Promo Name
Claimed Date
@if(count($used_voucher->where('shopify_id', $result['shopify_id'])) == 0)
No Voucher found
@else @foreach($used_voucher->where('shopify_id', $result['shopify_id']) as $result2)
{{$result2->promo_code}}
{{$result2->promo_description}}
{{date("d-M-Y h:i:s A", strtotime($result2->created_at))}}
@endforeach @endif
@endforeach @endif