@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.Total')
{{ $ProPrice * $CartItem->quantity }} {{ Country()->currancy_code }}
@endforeach