@php $total = 0 @endphp
@if (session($lastsegment) && !empty(session($lastsegment)) && count(session($lastsegment)) > 0)
{{-- @dd(session($lastsegment)) --}}
@foreach (session($lastsegment) as $id => $details)
@php
$product = \App\Models\Product::find($details['id']);
$image_url = !empty($product->image) && Storage::exists($product->image) ? $product->image : 'logo/placeholder.png';
$total += $details['subtotal'];
@endphp
|
{{ $details['name'] }} |
|
{{ $details['tax'] }}% |
{{ Auth::user()->priceFormat($details['price']) }} |
{{ Auth::user()->priceFormat($details['subtotal']) }}
|
{!! Form::open(['method' => 'delete', 'url' => ['remove-from-cart'], 'id' => 'delete-form-' . $id]) !!}
{!! Form::close() !!}
|
@endforeach
@else
| {{ __('No Data Found.!') }} |
@endif