@extends('front.layout.app') @section('content')

billing details

@csrf

Your Order

@php $total = 0 @endphp @foreach((array) session('cart') as $id => $details) @php $total += $details['price'] * $details['quantity'] @endphp @endforeach @if(session('cart')) @foreach(session('cart') as $id => $details)

{{ $details['title'] }}

$ {{ $details['price'] }}
@endforeach @endif

total

${{ $total }}

@php Session::put('total', $total) @endphp

@endsection