@extends('front.layout.pages') @section('title') @if (Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') السلة @else Cart @endif @stop @section('css') @stop @section('content')

{{ __('Shopping Cart') }}

{{ __('Shopping Cart') }}

({{ count($carts) }} {{ __('products') }})
@forelse ($carts as $cart) @empty @endforelse
{{ __('Product') }} {{ __('Product Name') }} {{ __('Price') }} {{ __('Quantity') }} {{ __('Total') }} {{ __('Action') }}
@if (Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ $cart->product->name_ar }} @else {{ $cart->product->name_en }} @endif {{ $cart->price ?? 0 }}
- +
{{ ($cart->price ?? 0) * $cart->quentity }}
{{ __('No item In Cart') }}

{{ __('Cart details') }}

{{ __('Total Products') }} :
{{ count($carts) }}
@php $totel = 0; foreach ($carts as $value) { # code... $totel += $value->quentity * ($value->price ?? 0); } @endphp

{{ __('Total Price') }} :

{{ $totel }}

@stop @section('js') @stop