@extends('layouts.app') @section('title', 'Invoice ' . $invoice->invoice_number) @section('content')

Invoice

{{-- Nomor & Status --}}

Nomor Invoice

{{ $invoice->invoice_number }}

@php $badge = $invoice->status_badge; @endphp {{ $badge['emoji'] }} {{ $badge['label'] }}
{{-- Animasi loading jika pending --}} @if($invoice->isPending())

Pesanan sedang diproses, halaman akan otomatis diperbarui...

@endif {{-- Error message --}} @if($invoice->isError() && $invoice->error_message)

⚠️ {{ $invoice->error_message }}

@endif {{-- Detail Akun & Produk --}}

Game

{{ $invoice->game_name }}

Akun

{{ $invoice->nickname }}

ID: {{ $invoice->game_user_id }} @if($invoice->game_server_id) • Server: {{ $invoice->game_server_id }} @endif

Produk

{{ $invoice->product_name }}

Total

Rp {{ number_format($invoice->total_price, 0, ',', '.') }}

Dibuat

{{ $invoice->created_at->format('d M Y, H:i') }}

{{-- Riwayat Status --}} @if($invoice->logs->count())

Riwayat Status

@foreach($invoice->logs as $log)

{{ $log->from_status ? ucfirst($log->from_status) . ' → ' : '' }}{{ ucfirst($log->to_status) }}

@if($log->note)

{{ $log->note }}

@endif

{{ $log->created_at->format('d/m/Y H:i:s') }} • {{ $log->actor }}

@endforeach
@endif 🏠 Kembali ke Beranda
@if($invoice->isPending()) @endif @endsection