@extends('layouts.app', ['activePage' => 'store_pdt', 'titlePage' => __('')]) @section('content')

{{ __("jamia.product") }}

@csrf
@foreach ($products as $product) @endforeach
{{__("jamia.sl_no")}} {{__("jamia.name")}} ItemBarcode {{__("jamia.Category")}} {{__("jamia.SubCategory")}} {{__("jamia.price")}} {{__("jamia.image")}} الفروع {{__("jamia.status")}} {{__("jamia.action") }}
{{ $i++; }} {{ $product->name }} {{ $product->ItemBarcode }} {{app()->getLocale() == 'ar' ? \App\Models\Category::where('id' , $product->parent_category)->first()?->category_arabic : \App\Models\Category::where('id' , $product->parent_category)->first()?->category_english}} {{app()->getLocale() == 'ar' ? \App\Models\Category::where('id' , $product->categories_id)->first()?->category_arabic : \App\Models\Category::where('id' , $product->categories_id)->first()?->category_english}} {{ number_format($product->price, 3) }} image @php $selectedOptions = $product->branches ? json_decode($product->branches, true) : []; $branches = \App\Models\StoreBranch::whereIn('id', $selectedOptions)->get(); @endphp @if ($branches->count() > 0) @foreach ($branches as $branch) {{ $branch->name_ar }}
@endforeach @else {{ __("No branches available") }} @endif
@if($product->Is_active == 'W') Waiting For Approval @elseif($product->Is_active == 'Y') Active @elseif($product->Is_active == 'N') In Active @else Cancel @endif @if($product->Is_active == 'Y' || $product->Is_active == 'N') Is_active == 'Y') checked @endif> @endif
@endsection @section('js') @endsection