@extends('layouts.app') @section('title', 'List Konsinyasi - Dazry Laundry App') @section('page_title', 'List Konsinyasi') @section('content')
Add
Filter Status:
@if($penjualans->isEmpty())

Belum ada data konsinyasi yang tercatat.

@else
@foreach($penjualans as $konsinyasi) {{-- --}} @endforeach
No. Tanggal Kirim Pelanggan Status Total Terjual Aksi
{{ $loop->iteration }}

{{ \Carbon\Carbon::parse($konsinyasi->tanggal_kirim)->format('d F Y') }}

{{ $konsinyasi->pelanggan->nama ?? 'N/A' }}

{{ ucfirst($status) }}

Rp {{ number_format($konsinyasi->total_terjual, 2, ',', '.') }}

Detail @if($konsinyasi->status == 'pending' || $konsinyasi->status == 'terjual_sebagian') @endif
@csrf @method('DELETE')
{{-- Dalam kolom aksi di tabel index atau tombol di halaman show --}} {{-- Buat Surat Jalan --}}
{{ $penjualans->appends(['status' => $status])->links() }}
@endif
@endsection