@extends('frontend.layouts.app') @section('title') Success @endsection @section('seo') @endsection @section('content') {{--
--}}
{{-- --}}
@if(session('qoute'))

For Quotation

@else

Quote sent successfully

@endif Reference Number:
{{ session('reference') }}
Items:
@php // Decode the JSON data from session $items = json_decode(session('items')); $quantities = json_decode(session('quantity')); // Query the Order model based on the reference stored in the session $orders = App\Models\Order::where('reference', session('reference'))->first(); @endphp @if ($items && $quantities) @foreach ($items as $index => $item) {{ $item }} x {{ $quantities[$index] }}
@endforeach @endif {{-- {{ session('items') }} x {{ session('quantity') }}
--}} Amount:
P {{ number_format($order->total_amount, 2) }}
{{-- {{ session('quantity') }} --}}
{{--
--}}
@endsection