@php $is_exists = 1; @endphp @foreach($sgk_stocks as $sgk_stock) @php $exists = $open_close_store->store_sgk_stock()->where("pawn_item_id", $sgk_stock->id)->exists(); if(!$exists) $is_exists = '0'; @endphp @endforeach @if($is_exists == 0)

@endif @foreach($sgk_stocks as $sgk_stock) @php $is_exists = $open_close_store->store_sgk_stock()->where("pawn_item_id", $sgk_stock->id)->exists(); @endphp @endforeach
Pawn Code Item Code
@if(!$is_exists == 1) @endif {{ $sgk_stock->pawn->application_number }} {{ $sgk_stock->pawn_item_code }}