@extends('Client.layouts.layout') @section('title', __('trans.cart') ) @section('content') @if ($Cart->count())
@csrf
@foreach ($Cart as $CartItem) @php $ProPrice = format_number( $CartItem->Product->Quantity->where('size_id',$CartItem->size_id)->where('color_id',$CartItem->color_id)->first()?->CalcPrice() ?? $CartItem->Product->CalcPrice() ); $Price = format_number( $CartItem->Product->Quantity->where('size_id',$CartItem->size_id)->where('color_id',$CartItem->color_id)->first()?->Price() ?? $CartItem->Product->Price() ); $ItemOptions = $Options->whereIn('id',explode(',', $CartItem->options))->pluck('title')->implode(','); @endphp

{{ $CartItem->Product->title() }}

@if ($CartItem->Size)

@lang('trans.size') : {{ $CartItem->Size->title() }}

@endif @if ($CartItem->Color)

@lang('trans.color') : {{ $CartItem->Color->title() }}

@endif @if ($ItemOptions)

{{ $ItemOptions }}

@endif @if ($CartItem->note)

{{ $CartItem->note }}

@endif

@lang('trans.Price')

@if ($CartItem->Product->HasDiscount()) {{ $Price }} @endif {{ $ProPrice }} {{ Country()->currancy_code }}

@lang('trans.Quantity')

+ -

@lang('trans.Total')

{{ $ProPrice * $CartItem->quantity }} {{ Country()->currancy_code }}

@endforeach
@lang('trans.Delivery Information')
@foreach (Deliveries() as $Delivery) @if($Delivery->id == 1) @else @endif @endforeach
first)>
first)>
@lang('trans.Summary')
@lang('trans.sub_total') : {{ Country()->currancy_code }} 1
@lang('trans.Discount') : - {{ Country()->currancy_code }} 1
@lang('trans.vat') ( {{ setting('VAT') }}% ) : {{ Country()->currancy_code }} 1
@lang('trans.netTotal') : {{ Country()->currancy_code }} 1
@if(lang('ar'))
@endif @if(lang('en'))
@endif
@else
empty-cart

@lang('trans.Empty Shopping Cart.')

@endif @endsection @push('js') @endpush @push('css') @endpush @push('js') @endpush @push('css') @endpush