@extends('frontend.layouts.master') @section('content')

Cart

@if(empty($cart))

Your cart is empty.

@else @php $totalPrice = 0; @endphp @foreach ($cart as $index => $project) @php $totalPrice += $project['price'] ?? 0; @endphp @endforeach
Index Title Project Value Thumbnail Price Action
{{ $loop->iteration }} {{ $project['title'] ?? '' }} {{ $project['project_value'] ?? '' }} Thumbnail {{ $project['price'] ?? '' }}
@csrf @method('DELETE')
Total {{ $totalPrice }}
@csrf
@endif
@endsection