@extends('layouts.app') @section('content') @if (! CartCollection::isEmpty()) @endif @if ($draft)
Refresh
@if ($queriedProducts)
@forelse($queriedProducts as $product) @empty @endforelse
Produk Harga Satuan ({{ $draft->type }}) Action
{{ $product->name }} {{ $draft->type == 'cash' ? $product->cash_price : $product->credit_price }}
{{ csrf_field() }}
Produk tidak ditemukan dengan keyword : {{ request('query') }}
@endif
@forelse($draft->items() as $key => $item) {{-- {{ csrf_field() }} {{ method_field('patch') }} --}} @empty @endforelse
# Nama Item Harga Satuan Qty Diskon Subtotal Action
{{ $key + 1 }} {{ $item->name }} {{ formatRp($item->price) }} {{ $item->qty }} {{ $item->item_discount }}
{{ formatRp($item->subtotal) }}
{{ csrf_field() }} {{ method_field('delete') }}
@endif @endsection