@php $is_exists = 1; @endphp @foreach($active_resellboxes as $resellbox) @foreach($resellbox->invoice as $invoice) @foreach($invoice->detail as $invoice_detail) @php $exists = $open_close_store->store_butik_stock()->where("store_resell_invoice_detail_id", $invoice_detail->id)->exists(); if(!$exists) $is_exists = '0'; @endphp @endforeach @endforeach @endforeach @if($is_exists == 0)
| # | Cashbox | Invoice | Brand | Type | Carat | Weight | PLU | |
|---|---|---|---|---|---|---|---|---|
| @if(!$is_exists == 1) @endif | {{ $resellbox->code }} | {{ $invoice->invoice }} | {{ $invoice_detail->item_brand->brand_name }} | {{ $invoice_detail->item_type->type }} | {{ $invoice_detail->item_carat->carat }} | {{ $invoice_detail->weight }} | {{ $invoice_detail->plu }} |