@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

Items

@forelse($draft->items() as $key => $item) {!! Form::open(['route' => ['cart.update-draft-item', $draft->draftKey], 'method' => 'patch']) !!} {!! Form::close() !!} @empty @endforelse
# Nama Item Harga Satuan Qty Diskon Subtotal Action
{{ $key + 1 }} {{ $item->name }} {{ formatRp($item->price) }} {!! FormField::text('qty', ['value' => $item->qty, 'id' => 'qty-' . $key, 'style' => 'width:50px', 'label' => false]) !!} {{ Form::text('item_discount', $item->item_discount, ['id' => 'item_discount-' . $key]) }}{{ formatRp($item->subtotal) }}
{{ csrf_field() }} {{ method_field('delete') }}
@endif @endsection