@php
$lastCode = \App\Models\StockItem::where(
'business_key',
Auth::user()->business_key,
)
->orderBy('id', 'desc')
->first();
if ($lastCode) {
$lastCode = $lastCode->item_code;
} else {
$lastCode = 0;
}
$masterSettings = \App\Models\MasterSetting::where(
'business_key',
Auth::user()->business_key,
)->first();
@endphp
@if (isset($lastCode))
Last Code: {{ $lastCode }}
@endif
@if (Auth::user()->company_profile->collection_wise_voucher == 1)
@endif
@if (Auth::user()->company_profile->transfer_business_key != null)
@endif
@php
$masterSettings = \App\Models\MasterSetting::where(
'business_key',
Auth::user()->business_key,
)->first();
@endphp
@if ($masterSettings->show_barcode == 1)
@endif
@if (Auth::user()->company_profile->collection_wise_voucher == 0)
@else
@endif