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

إتمام الشراء

@if ($errors->any())
@endif
@csrf
@php $total = 0; @endphp @foreach($products as $product) @php $qty = $cart[$product->id]; $subtotal = $product->price * $qty; $total += $subtotal; @endphp @endforeach
المنتج الكمية المجموع
{{ $product->name }} {{ $qty }} {{ $subtotal }} ﷼
الإجمالي: {{ $total }} ﷼
@endsection