@extends('shopify-app::layouts.default') @section('content')
{{$order['name']}}
{{$order['customer_name']}}
{{$order['email']}}
@csrf

Line Item Properties

@if(!empty($lineitems)) @foreach($lineitems as $item) @if(strpos($item->name , "Vitamin") !== false) @php $splitItems = explode(" | ",$item->value); $title = $splitItems[0]; $dose= $splitItems[1]; $qty = $splitItems[2]; $variantId = $splitItems[3]; array_push($selectedVariants, $variantId); $price = 0; $productPrice = 0; if(isset($products[$variantId])) { $productPrice = $products[$variantId]['price']; $price = $products[$variantId]['price'] * $qty; } $totalPrice += $price; @endphp @endif @endforeach @endif
Vitamin Name Properties Price Qty Total
{{ $item->name }} {{ $item->value }} ${{number_format($productPrice,2)}} ${{number_format($price,2)}} icon delete
Subtotal
@endsection @section('scripts') @parent @endsection