@php $total_act_berat = 0; @endphp @php $no = 1; @endphp @foreach ($resell_invoice as $key => $data_invoice) @foreach ($data_invoice->invoice_detail as $key => $detail) @php $label = 'default'; switch ($detail->qc_status) { case null: $label = 'danger'; break; case 'in_progress': $label = 'warning'; break; case 'done': $label = 'success'; break; case 'moved_central': $label = 'warning'; break; case 'unloaded': $label = 'default'; break; case 'refinery': $label = 'info'; break; } $checked_carat = ''; $checked_weight = ''; $checked_year = ''; if ($detail->item_carat_id == $detail->actual_item_carat_id) { $checked_carat = 'checked'; } if ($detail->weight == $detail->actual_weight) { $checked_weight = 'checked'; } if ($detail->year == $detail->actual_year) { $checked_year = 'checked'; } $inv_attr = $data_invoice->invoice . '
' . $data_invoice->customer_name . '
(Rp.' . number_format($detail->price, 2) . ')
'; @endphp @endforeach @endforeach
No DO Invoice Customer Location price Appraisal Name Item Description Weight Actual Weight Tahun Resell Tahun Fisik Carat Note Preloved/ Lebur Actual Carat Comment Unload Date Last Update Qc Status
{{ $data_invoice->resellbox_unload->delivery_code }} {{ $data_invoice->invoice }} {{ $data_invoice->customer_name }} {{ $data_invoice->resellbox_unload->receive_from_store->name }} {{ $data_invoice->resellbox_unload->receive_from_store->brand->name }} {{ number_format($detail->price, 2) }} {{ $data_invoice->ae_by ? $data_invoice->ae_by->name : '-' }} {{ $detail->item_type->type . ' (' . $detail->item_brand->brand_name . ')' }} @if ($detail->plu)
PLU : {{ $detail->plu }}
@endif @if ($detail->new_item_plu)
NEW PLU : {{ $detail->new_item_plu->plu_new }}
@endif
{{ $detail->weight }} {{ $detail->actual_weight }} {{ $detail->year }} {{ $detail->actual_year }} {{ $detail->item_carat ? $detail->item_carat->carat_text : '-' }} {{ $detail->refinery_item_type ? $detail->refinery_item_type : '-' }} {{ $detail->is_preloved }} {{ $detail->actual_item_carat ? $detail->actual_item_carat->carat_text : '-' }} {{ $detail->unload_comment }} {{ $data_invoice->resellbox_unload ? $data_invoice->resellbox_unload->unload_date : '-' }} {{ $detail->qc_by ? $detail->qc_by->name : '-' }}