@extends('layouts.main') @section('title') Pesanan @endsection @push('styles') @endpush @section('container') Tabel Pesanan No Nama Pelanggan Produk Harga Produk Qty Total Harga Status Status Pemesanan Bukti Pembayaran Bukti Pelunasan Aksi @foreach ($pesanan as $item) {{ $loop->iteration }} {{ $item->user->name }} {{ $item->produk->nama }} Rp. {{ number_format($item->produk->harga, 0, ',', '.') }} {{ $item->qty }} Rp. {{ number_format($item->grand_total, 0, ',', '.') }} {{ $item->status }} @if ($item->pengiriman === 'ambil sendiri') Ambil Sendiri @else Dikirim @endif @if ($item->status_pembayaran === 'dp' && !is_null($item->bukti_pelunasan)) @else - @endif @if ($item->status === 'proses') @endif @endforeach {{-- modal info --}} @foreach ($pesanan as $item)
-
{{ $item->user->name }}
{{ $item->user->notelp }}
{{ $item->produk->nama }}
Rp. {{ number_format($item->produk->harga, 0, ',', '.') }}
{{ $detail->color->name_color }}
{{ $detail->color->code_color }}
{{ $detail->ukuran->ukuran }}
{{ $detail->qty }}
{{ $item->qty }}
Rp. {{ number_format($item->grand_total, 0, ',', '.') }}
{{ $item->detail_pesanan }}
{{ $item->status }}
{{ $item->status_pembayaran }}
{{ \Carbon\Carbon::parse($item->created_at)->translatedFormat('d F Y') }}