@extends('frontend.layout.master') @section('title', $pageTitle) @section('content')

Checkout 

@if(Session::has('toast'))
{{ Session::get('toast')['message'] }}
@endif

Account & Billing Details

@csrf
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@if ($errors->has('company')) {{ $errors->first('company') }} @endif
@if ($errors->has('address')) {{ $errors->first('address') }} @endif
@if ($errors->has('country')) {{ $errors->first('country') }} @endif
@if ($errors->has('state')) {{ $errors->first('state') }} @endif
@if ($errors->has('city')) {{ $errors->first('city') }} @endif
@if ($errors->has('zip')) {{ $errors->first('zip') }} @endif

Order Summary

@php $total = 0 @endphp @if(session('cart') && count(session('cart')) > 0)

Image

Product

Quantity

Price

Total

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

{{ $details['name'] }}

{{ $details['quantity'] }}

₹ {{ $details['price'] }}

₹ {{ $details['price'] * $details['quantity'] }}

@endforeach

Total

₹ {{ $total }}

@else

Your cart is empty.

@endif
@endsection