@extends('layout.layout') @section('other-brach','active') @section('content')

@include('partials.breadcrumbs')

@include('partials.search-table')
@if($branchStocks->isNotEmpty()) @php $firstItem = $branchStocks->first(); @endphp

{{ $firstItem->generic_article_description }}

Size: {{ $firstItem->size_code }} ({{ $firstItem->subclass }})
@else

No Stock Data Available

@endif
@if($branchStocks->isNotEmpty()) @forelse($branchStocks as $stocks) @empty @endforelse
Branch Stock Last Sold Date
{{ $stocks->store_name }} @php $stock = $stocks->balance_approved ?? 'N/A'; @endphp @if($stock === 0 || $stock === '0') OOS @else {{ is_numeric($stock) ? number_format($stock, 0) : $stock }} @endif {{ $stocks->last_sold_date ?? 'No Data' }}
No stock data available.
@endif
@endsection @section('javascript') @endsection