@extends('layouts/contentLayoutMaster') @section('title', 'Add Order') @section('main-page', 'Orders') @section('sub-page', 'Add New Order') @section('main-page-url', route("orders.index")) @section('sub-page-url', route("orders.create")) @section('vendor-style') @endsection @section('content') @php use Illuminate\Support\Facades\Cache; $orderData = Cache::get(getOrderStepCacheKey()) ?? []; $pricingSubtotal = $orderData['pricing_details']['sub_total'] ?? 0; $quantity = $orderData['pricing_details']['quantity'] ?? 0; $tax = number_format($pricingSubtotal * 0.1, 2); $deliveryFee = isset($orderData['delivery_fee']) ? number_format($orderData['delivery_fee'], 2) : '30.00'; $discountAmount = isset($orderData['discount_amount']) ? number_format($orderData['discount_amount'], 2) : '0.00'; $total = isset($orderData['total']) ? number_format($orderData['total'], 2) : number_format($pricingSubtotal + 30 + ($pricingSubtotal * 0.1), 2); @endphp
@include('dashboard.orders.steps.step1') {{-- --}} @include('dashboard.orders.steps.step2') {{-- --}} @include('dashboard.orders.steps.step3') {{-- --}} @include('dashboard.orders.steps.step4') {{-- --}} @include('dashboard.orders.steps.step5') {{-- --}} @include('dashboard.orders.steps.step6') {{-- --}} @include('dashboard.orders.steps.step7') {{-- --}} @include('dashboard.orders.steps.step8')
@endsection @section('vendor-script') @endsection @section('page-script') @endsection