@extends('front.layout.app') @section('title', 'Cart Page') @section('content')

{{ 'Checkout' }}

@if ($errors->any())
@endif
@csrf {{-- --}}

Personal Information

@error('name') {{ $message }} @enderror
@error('email') {{ $message }} @enderror
@error('phone_number') {{ $message }} @enderror

Shipping Address

@error('address') {{ $message }} @enderror
@error('postal_code') {{ $message }} @enderror
@error('city') {{ $message }} @enderror
@error('country') {{ $message }} @enderror

Payment Methods

Item

@if (isset($cart_data)) @php $total = '0'; @endphp @foreach ($cart_data as $data) @php $total = $total + ($data->qty * $data->price) @endphp
image {{ $data->qty }}
{{ $data->name }}
Remove

${{ $data->price }}

@endforeach
  • Subtotal
  • ${{ number_format($total, 2) }}
  • Shipping
  • $2.00
  • Total
  • ${{ number_format($total + 2, 2) }}
@endif
@endsection @section('script') @endsection