@extends('layouts.app') @section('content')
{{-- Header --}}

๐Ÿ‘‹ Selamat Datang, {{ auth()->user()->name }}!

di {{ $profile->nama_perusahaan ?? 'Aleena' }}.

{{-- Riwayat Transaksi --}}

๐Ÿงพ Riwayat Transaksi

๐Ÿ“š Lihat Semua
{{-- Filter Status --}}
@if($transactions->count() > 0)
@foreach($transactions as $trx)
{{-- Top --}}
๐Ÿ†” #{{ $trx->id }}
{{ ucfirst(str_replace('_', ' ', $trx->status)) }}
{{-- Produk + Bukti --}}
{{-- Produk --}}
@foreach($trx->items as $item) @php $img = $item->catalog?->image_path ? asset('storage/' . $item->catalog->image_path) : asset('images/default-product.png'); @endphp
Produk

{{ $item->catalog->name }}

@endforeach
{{-- Bukti Transfer --}}

๐Ÿ“ค Bukti Transfer

@if ($trx->payment_proof) Bukti Transfer

Klik untuk perbesar

@else

๐Ÿšซ Bukti belum tersedia

@endif
{{-- Info Transaksi --}}
Total: Rp {{ number_format($trx->total, 0, ',', '.') }}
{{ $trx->created_at->translatedFormat('d F Y H:i') }}
{{-- Catatan --}} @if($trx->notes)
๐Ÿ“ Catatan:
{{ $trx->notes }}
@endif
@endforeach
@else {{-- Kosong --}}

Belum ada transaksi ditemukan.

๐Ÿ›’ Belanja Sekarang
@endif
{{-- Modal Preview Gambar --}} {{-- Toast Message --}} @if(session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
{{-- Alpine.js --}} @endsection