@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
| {{ ++$key }} |
{{ $cartItem->sadakat->name }} |
{{ $cartItem->quantity }} |
{{ $cartItem->sadakat->price }} |
@endif
@endforeach
اسهم
| # |
اسم السهم |
الكمية |
سعر السهم الواحد |
المجموع |
@foreach ($cartItems as $key => $cartItem)
@if ($cartItem->type == 'ashom')
@php $total += $cartItem->ashom->price * $cartItem->quantity; @endphp
| {{ ++$key }} |
{{ $cartItem->ashom->name }} |
{{ $cartItem->quantity }} |
{{ $cartItem->ashom->price }} |
{{ $cartItem->ashom->price * $cartItem->quantity }} |
@endif
@endforeach
زكاه
| # |
المبلغ |
@foreach ($cartItems as $key => $cartItem)
@if ($cartItem->type == 'zakah')
@php $total += $cartItem->price; @endphp
| {{ ++$key }} |
{{ $cartItem->price }} |
@endif
@endforeach
المجموع : {{ $total }}
طريقة الدفع
@else
Cart is Empty
@endif
@endsection