@extends('layout.app') @section('title', __('stock_count')) @section('content')
{{ __('stock_count') }}
@foreach ($stockCounts as $stock_count) @if ($stock_count->type == 'full') @else @endif @endforeach
{{ __('sl') }} {{ __('date') }} {{ __('reference') }} {{ __('warehouse') }} {{ __('category') }} {{ __('brand') }} {{ __('type') }}
{{ $loop->iteration }} {{ dateFormat($stock_count->created_at) }} {{ $stock_count->reference_no }} {{ $stock_count->warehouse->name }} @if ($stock_count->category_id) @php $categoriesName = \App\Repositories\CategoryRepository::query() ->whereIn('id', json_decode($stock_count->category_id)) ->get(); @endphp @foreach ($categoriesName as $catKey => $category) {{ $catKey ? ', ' . $category->name : $category->name }} @endforeach @else N\A @endif @if ($stock_count->brand_id) @php $brandsName = \App\Repositories\BrandRepository::query() ->whereIn('id', json_decode($stock_count->brand_id)) ->get(); @endphp @foreach ($brandsName as $brandKey => $brand) {{ $brandKey ? ', ' . $brand->title : $brand->title }} @endforeach @else N\A @endif
{{ __('full') }}
{{ __('partial') }}
@endsection @push('scripts') @endpush