Pengajuan Pembatalan Pesanan

Kelola semua permintaan pembatalan dari pelanggan.

@if(session('success'))
{{ session('success') }}
@endif {{-- Stats --}}
MENUNGGU REVIEW
{{ $cancellations->where('status','pending')->count() }}
DISETUJUI
{{ $cancellations->where('status','approved')->count() }}
DITOLAK
{{ $cancellations->where('status','rejected')->count() }}
{{-- Tabel --}}
Daftar Pengajuan Pembatalan ({{ $cancellations->total() }})
@forelse($cancellations as $item) @empty @endforelse
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 --}}
@csrf
{{-- Tombol Tolak --}} @else @if($item->status === 'approved') Disetujui @elseif($item->status === 'rejected') Ditolak @else - @endif @endif

Belum ada pengajuan pembatalan

{{-- Pagination --}} @if($cancellations->hasPages())
Menampilkan {{ $cancellations->firstItem() }} - {{ $cancellations->lastItem() }} dari {{ $cancellations->total() }} pengajuan {{ $cancellations->links() }}
@endif