@extends('layouts.app') @section('title', 'MyTax Submission Details') @section('content')

MyTax Submission Details

Back to Dashboard
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if(session('warning'))
{{ session('warning') }}
@endif
Order Information
Order Number: {{ $order->order_number }}
Website: {{ $order->website->domain }}
{{ $order->website->name }}
Customer: {{ $order->customer_name }}
{{ $order->customer_email }}
Total Amount: RM {{ number_format($order->total_amount, 2) }}
Order Date: {{ $order->created_at->format('d/m/Y H:i') }}
Payment Status: @if($order->payment_status === 'paid') Paid @elseif($order->payment_status === 'pending') Pending @else {{ ucfirst($order->payment_status) }} @endif
Payment Method: {{ ucfirst(str_replace('_', ' ', $order->payment_method)) }}
Items Count: {{ $order->items->count() }} items
Order Items
@foreach($order->items as $item) @endforeach @if($order->tax_amount > 0) @endif @if($order->shipping_amount > 0) @endif
Item Quantity Unit Price Total
{{ $item->product_name }} @if($item->variation_details)
{{ $item->variation_details }} @endif
{{ $item->quantity }} RM {{ number_format($item->unit_price, 2) }} RM {{ number_format($item->total_price, 2) }}
Subtotal RM {{ number_format($order->subtotal, 2) }}
Tax RM {{ number_format($order->tax_amount, 2) }}
Shipping RM {{ number_format($order->shipping_amount, 2) }}
Total RM {{ number_format($order->total_amount, 2) }}
MyTax Status
@if($order->mytax_submission_uuid && in_array($order->mytax_status, [null, 'pending']))
@csrf
@endif
@if($order->mytax_status === 'accepted')
Accepted
@elseif($order->mytax_status === 'rejected')
Rejected
@elseif($order->mytax_submission_uuid)
Pending Validation
@else
Not Submitted
@endif
@if($order->mytax_submission_uuid) @endif @if($order->mytax_document_uuid) @endif @if($order->mytax_long_id) @endif @if($order->mytax_submitted_at) @endif @if($order->mytax_validated_at) @endif
Submission UUID: {{ $order->mytax_submission_uuid }}
Document UUID: {{ $order->mytax_document_uuid }}
Long ID: {{ $order->mytax_long_id }}
Submitted: {{ $order->mytax_submitted_at->format('d/m/Y H:i') }}
Validated: {{ $order->mytax_validated_at->format('d/m/Y H:i') }}
@if($order->mytax_qr_code)
MyTax QR Code
MyTax QR Code
@endif @if($order->mytax_error)
Error Details:
@php $error = is_string($order->mytax_error) ? json_decode($order->mytax_error, true) : $order->mytax_error; @endphp @if(is_array($error))
{{ json_encode($error, JSON_PRETTY_PRINT) }}
@else

{{ $error }}

@endif
@endif
@if($order->mytax_status === 'rejected' || !$order->mytax_submission_uuid)
@csrf
@endif
@if($submissionDetails)
LHDN Response
{{ json_encode($submissionDetails, JSON_PRETTY_PRINT) }}
@endif
@endsection