@extends('layouts.admin') @section('title', 'Monitoring Sistem') @section('page-title', 'Monitoring Data') @section('content')
| Invoice | Petani / Usaha | Pembeli | Total | Status | Tanggal | Aksi |
|---|---|---|---|---|---|---|
| #{{ $trx->kode_invoice }} |
{{ $trx->petani->nama_lengkap ?? 'Petani Tidak Ditemukan' }}
{{ $trx->petani->nama_usaha ?? '-' }}
|
{{ $trx->pembeli->nama_lengkap ?? 'Guest' }} | Rp {{ number_format($trx->total_harga, 0, ',', '.') }} | @php $badgeClass = match ($trx->status) { 'selesai' => 'bg-success', 'batal' => 'bg-danger', 'dikirim' => 'bg-primary', 'diproses' => 'bg-info', 'menunggu konfirmasi' => 'bg-warning text-dark', default => 'bg-secondary', }; @endphp {{ ucwords($trx->status) }} | {{ $trx->created_at->format('d M Y') }} | Detail |
|
Belum ada transaksi baru.
|
||||||
| Nama Produk | Pemilik (Petani) | Harga | Stok |
|---|---|---|---|
| {{ $p->nama_produk }} | {{ $p->petani->nama_lengkap }} | Rp {{ number_format($p->harga, 0, ',', '.') }} | {{ $p->stok }} |