@if (session($lastsegment) && !empty(session($lastsegment)) && count(session($lastsegment)) > 0)
@foreach (session($lastsegment) as $id => $details)
@php
$product = \App\Models\ProductService::find($details['id']);
$image_url =
!empty($product) && isset($product->pro_image)
? $product->pro_image
: 'uploads/pro_image/';
$total += $details['subtotal'];
$netPrice += $details['netPrice'];
$discount += $details['discount'];
@endphp
|
{{ $details['name'] }} |
|
@if (!empty($product->tax_id))
@php
$taxes = \Utility::tax($product->tax_id);
@endphp
@foreach ($taxes as $tax)
{{ $tax->name . ' (' . $tax->rate . '%)' }}
@endforeach
@else
-
@endif
|
{{ 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