{{-- This page is rendered by the thanks() method inside Front/ProductsController.php --}} @extends('front.layout.layout') @section('content')

Cart

YOUR ORDER HAS BEEN PLACED SUCCESSFULLY

Your order number is {{ Session::get('order_id') }} and Grand Total is INR {{ Session::get('grand_total') }}

{{-- The Order Number is the order `id` in the `orders` database table. We stored the order id in Session in checkout() method in Front/ProductsController.php --}} {{-- Retrieving Data: https://laravel.com/docs/10.x/session#retrieving-data --}}
@endsection {{-- Forget/Remove some data in the Session after making/placing the order --}} @php use Illuminate\Support\Facades\Session; Session::forget('grand_total'); // Deleting Data: https://laravel.com/docs/9.x/session#deleting-data Session::forget('order_id'); // Deleting Data: https://laravel.com/docs/9.x/session#deleting-data Session::forget('couponCode'); // Deleting Data: https://laravel.com/docs/9.x/session#deleting-data Session::forget('couponAmount'); // Deleting Data: https://laravel.com/docs/9.x/session#deleting-data @endphp