@if(session($lastsegment) && !empty(session($lastsegment)) && count(session($lastsegment)) > 0)
@foreach(session($lastsegment) as $id => $details)
@php
$product = \App\Models\Product::find($details['id']);
$image_url = !empty($product->is_cover) ? $product->is_cover : 'default.jpg';
if($details['variant_id'] <= 0){
$total = $total + (float) $details['subtotal'];
}else{
$total = $total + (float) $details['variant_subtotal'];
}
@endphp
@if(\Auth::user()->current_store == $product->store_id)
@if($details['variant_id'] <= 0)
@else
@endif
{{-- --}}
|
@if($details['variant_id'] <= 0)
{{ $details['product_name'] }} |
|
@else
{{ $details['product_name'] . '-' . $details['variant_name'] }} |
|
@endif
@if(!empty($product->product_tax))
@php
$taxes=\Utility::tax($product->product_tax);
@endphp
@foreach($taxes as $tax)
{{$tax->name .' ('.$tax->rate .'%)'}}
@endforeach
@else
-
@endif
|
@if($details['variant_id'] <= 0)
{{-- {{ \App\Models\Utility::priceFormat($details['price']) }} | --}}
{{ \App\Models\Utility::priceFormat($details['price']) }} |
{{-- {{ \App\Models\Utility::priceFormat($details['subtotal']) }} --}}
{{ \App\Models\Utility::priceFormat($details['subtotal']) }}
|
@else
{{ \App\Models\Utility::priceFormat($details['variant_price']) }} |
{{ \App\Models\Utility::priceFormat($details['variant_subtotal']) }}
|
@endif
{!! Form::open(['method' => 'delete', 'url' => ['remove-from-cart'],'id' => 'delete-form-'.$id]) !!}
{!! Form::close() !!}
|
@endif
@endforeach
@else
| {{__('No Data Found.!')}} |
@endif