@extends('layouts.layouts_dashboard') @section('title', 'Detail Transaksi') @section('content')
Kode Transaksi | {{ $transaksi->kode }} |
---|---|
Tanggal | {{ $transaksi->tanggal_dibuat->format('d/m/Y H:i') }} |
Status | @php $statusColors = [ 'pending' => 'bg-yellow', 'processing' => 'bg-blue', 'quality_check' => 'bg-purple', 'completed' => 'bg-green', 'cancelled' => 'bg-red', ]; $statusLabels = [ 'pending' => 'Pending', 'processing' => 'Diproses', 'quality_check' => 'QC', 'completed' => 'Selesai', 'cancelled' => 'Dibatalkan', ]; @endphp {{ $statusLabels[$transaksi->status] }} |
Progress |
{{ $transaksi->progress_percentage }}%
|
Metode Pembayaran | {{ $transaksi->payment_method }} |
Estimasi Selesai | {{ $transaksi->estimasi_selesai->format('d/m/Y') }} |
Total Harga | Rp {{ number_format($transaksi->total_harga, 0, ',', '.') }} |
Terbayar | Rp {{ number_format($transaksi->terbayar ?? $transaksi->total_harga, 0, ',', '.') }} |
Kembali | Rp {{ number_format($transaksi->kembali ?? 0, 0, ',', '.') }} |
Nama | {{ $transaksi->pelanggan->nama ?? 'N/A' }} |
---|---|
{{ $transaksi->pelanggan->email ?? 'N/A' }} | |
Telepon | {{ $transaksi->pelanggan->telepon ?? 'N/A' }} |
Alamat | {{ $transaksi->pelanggan->alamat ?? 'N/A' }} |
Produk | Kuantitas | Harga Satuan | Subtotal |
---|---|---|---|
{{ $item->produk->nama_produk ?? 'Produk Tidak Ditemukan' }}
@if ($item->transaksiItemSpecifications->count() > 0)
@foreach ($item->transaksiItemSpecifications as $spec)
@endif
{{ $spec->spesifikasiProduk->spesifikasi->nama_spesifikasi ?? 'Spesifikasi' }}:
{{ $spec->value }}
@if ($spec->bahan)
({{ $spec->bahan->nama_bahan }})
@endif
@endforeach
|
{{ $item->kuantitas }} | Rp {{ number_format($item->harga_satuan, 0, ',', '.') }} | Rp {{ number_format($item->kuantitas * $item->harga_satuan, 0, ',', '.') }} |
Total: | Rp {{ number_format($transaksi->total_harga, 0, ',', '.') }} |