Pengajuan Pembatalan Pesanan
Kelola semua permintaan pembatalan dari pelanggan.
@if(session('success'))
{{-- Tabel --}}
{{-- Pagination --}}
@if($cancellations->hasPages())
{{ session('success') }}
@endif
{{-- Stats --}}
MENUNGGU REVIEW
{{ $cancellations->where('status','pending')->count() }}
DISETUJUI
{{ $cancellations->where('status','approved')->count() }}
DITOLAK
{{ $cancellations->where('status','rejected')->count() }}
Daftar Pengajuan Pembatalan ({{ $cancellations->total() }})
| Invoice | Pelanggan | Alasan | Keterangan | Tgl Pengajuan | Status | Aksi |
|---|---|---|---|---|---|---|
| {{ $item->transaksi->invoice_number ?? '-' }} Rp{{ number_format($item->transaksi->total_amount ?? 0, 0, ',', '.') }} |
{{ $item->user->name ?? '-' }} {{ $item->user->email ?? '-' }} |
{{ $item->reason }} | {{ $item->description ?? '-' }} |
{{ $item->created_at->format('d M Y') }} {{ $item->created_at->format('H:i') }} |
{{ $item->status === 'pending' ? 'Menunggu' : ($item->status === 'approved' ? 'Disetujui' : 'Ditolak') }}
@if($item->reviewed_at)
{{ $item->reviewed_at->format('d M Y') }} @endif |
@if($item->status === 'pending') {{-- Tombol Setujui --}} {{-- Tombol Tolak --}} @else @if($item->status === 'approved') Disetujui @elseif($item->status === 'rejected') Ditolak @else - @endif @endif |
|
Belum ada pengajuan pembatalan |
||||||
Menampilkan {{ $cancellations->firstItem() }} - {{ $cancellations->lastItem() }}
dari {{ $cancellations->total() }} pengajuan
{{ $cancellations->links() }}
@endif