@extends('layouts.admin')
@section('title', 'Penjualan')
@section('content')
@php
$breadcrumbs = [
['label' => 'Dashboard', 'url' => route('admin.dashboard')],
['label' => 'Transaksi', 'url' => '#'],
['label' => 'Penjualan', 'url' => route('admin.transaksi.sales.index')]
];
@endphp
| No | Gambar | Produk | Pembeli | Jumlah | Harga Satuan | Total | Metode | Tanggal | Status | Aksi |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration + $sales->firstItem() - 1 }} |
@if ($sale->product && $sale->product->product_image)
|
{{ $sale->product->product_title ?? '-' }} | {{ $sale->order->customer_name ?? '-' }} | {{ $sale->quantity }} | Rp {{ number_format($sale->unit_price, 0, ',', '.') }} | Rp {{ number_format($sale->total_price, 0, ',', '.') }} | @php $paymentMethodColors = [ 'transfer' => 'bg-blue-100 dark:bg-blue-900/40 text-blue-800 dark:text-blue-300', 'qris' => 'bg-green-100 dark:bg-green-900/40 text-green-800 dark:text-green-300', 'dp' => 'bg-purple-100 dark:bg-purple-900/40 text-purple-800 dark:text-purple-300', 'cod' => 'bg-orange-100 dark:bg-orange-900/40 text-orange-800 dark:text-orange-300', ]; $methodClass = $paymentMethodColors[strtolower($sale->payment_method ?? '')] ?? 'bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300'; @endphp {{ strtoupper($sale->payment_method ?? '-') }} | {{ $sale->sale_date ? $sale->sale_date->format('d M Y') : '-' }} | @php $statusConfig = [ 'selesai' => [ 'bg' => 'bg-green-100 dark:bg-green-900/40', 'text' => 'text-green-700 dark:text-green-300', 'icon' => 'fa-check-circle' ], 'dibatalkan' => [ 'bg' => 'bg-red-100 dark:bg-red-900/40', 'text' => 'text-red-700 dark:text-red-300', 'icon' => 'fa-times-circle' ], ]; $config = $statusConfig[$sale->status] ?? [ 'bg' => 'bg-yellow-100 dark:bg-yellow-900/40', 'text' => 'text-yellow-700 dark:text-yellow-300', 'icon' => 'fa-clock' ]; @endphp {{ ucfirst($sale->status) }} | |
|
Tidak ada hasil pencarian Coba kata kunci lain atau reset pencarian @elseBelum ada data penjualan Data penjualan dibuat otomatis dari pesanan yang sudah selesai pembayaran dan produksi @endif |
||||||||||