@extends('layouts.user') @section('sidebar') @include('frontend.components.user-layout-sidebar') @endsection @section('body_class') fill_data shp @endsection @section('content') @include('frontend.components.alerts-components') @php $total = 0; @endphp @if (count($cartItems) > 0)

صدقة

@foreach ($cartItems as $key => $cartItem) @if ($cartItem->type == 'sadakat') @php $total +=$cartItem->sadakat->price; @endphp @endif @endforeach
# الباقة الكمية سعر الباقة
{{ ++$key }} {{ $cartItem->sadakat->name }} {{ $cartItem->quantity }} {{ $cartItem->sadakat->price }}

اسهم

@foreach ($cartItems as $key => $cartItem) @if ($cartItem->type == 'ashom') @php $total += $cartItem->ashom->price * $cartItem->quantity; @endphp @endif @endforeach
# اسم السهم الكمية سعر السهم الواحد المجموع
{{ ++$key }} {{ $cartItem->ashom->name }} {{ $cartItem->quantity }} {{ $cartItem->ashom->price }} {{ $cartItem->ashom->price * $cartItem->quantity }}

زكاه

@foreach ($cartItems as $key => $cartItem) @if ($cartItem->type == 'zakah') @php $total += $cartItem->price; @endphp @endif @endforeach
# المبلغ
{{ ++$key }} {{ $cartItem->price }}

المجموع : {{ $total }}

طريقة الدفع

@csrf

@else

Cart is Empty

@endif @endsection