@php use Illuminate\Support\Facades\Route; $currentUrl = Route::getCurrentRoute(); if($currentUrl) { $currentUrl = $currentUrl->getName(); } @endphp
Cart

Services

Quantity

Price

@php $cartItems = Helper::cartItems(); $cartTotalPrice = Helper::totalCartPrice(); @endphp @if (isset($cartItems)) @foreach ($cartItems as $cart) @foreach ($cart['services'] as $cartService) @php $venderservice = App\Models\ArtistsServices::where('service_id', $cartService['service_id']) ->where('user_id', $cartService['cart']['vender_id']) ->first(); @endphp

{{ $cartService['Service']['name'] }}

@if(isset($venderservice->duration)) {{ $venderservice->duration }} @else N/A @endif Min
{{ $cartService['price'] }}
@endforeach @endforeach @endif

@php $cartServices = null; @endphp @if ($cartItems) {{ Helper::usercartItems() }} @else 0 @endif items

₹ @if (isset($cartTotalPrice)) {{ $cartTotalPrice }} @else 0 @endif