@extends('backend.layouts_backend.master2')
@section('title')
InActive Products
@endsection
@section('content')
{{-- header --}}
{{-- alert add item --}}
@if (session('messagesave'))
{{--
{{ session('message')}}
--}}
{{ session('messagesave') }}
@endif
{{-- alert delete item --}}
@if (session('messagedelete'))
{{ session('messagedelete') }}
{{--
{{ session('messagedelete')}}
--}}
@endif
{{-- alert update item --}}
@if (session('messageupdate'))
{{ session('messageupdate') }}
@endif
#Id |
Product Code |
Name |
{{-- Category | --}}
Branch |
@if (is_array($product_create_form_fields_values))
@if (in_array(4, $product_create_form_fields_values ?? ''))
Image |
@endif
@endif
Status |
@if (is_array($product_create_form_fields_values))
@if (in_array(2, $product_create_form_fields_values ?? ''))
Product Stock |
@endif
@endif
@if (is_array($product_create_form_fields_values))
@if (in_array(6, $product_create_form_fields_values ?? ''))
Stock Alert |
@endif
@endif
Created By |
Action |
|
@foreach ($products as $key => $product)
{{ $key + 1 ?? 'N/A' }} |
{{ $product->product_code ?? 'N/A' }} |
{{ $product->product_name ?? 'N/A' }} |
{{-- {{ $product->product_category->product_category_name ?? 'N/A' }} | --}}
{{ $product->branch->branch_name ?? 'N/A' }} |
@php
$product_image_decoded = isset($product->product_image)
? json_decode($product->product_image)
: null;
$product_gallery_decoded = isset($product->product_image_gallery)
? json_decode($product->product_image_gallery)
: null;
@endphp
@if (is_array($product_create_form_fields_values))
@if (in_array(4, $product_create_form_fields_values ?? ''))
|
@endif
@endif
{{-- {{ $product->product_image ?? 'N/A' }} | --}}
{{-- {{ $product->product_image_gallery ?? 'N/A' }} | --}}
{{-- {{ $product->product_cost_price ?? 'N/A' }} | --}}
{{-- {{ $product->product_selling_price ?? 'N/A' }} | --}}
@if ($product->product_status == '1')
Active
@else
In Active
@endif
|
@if (is_array($product_create_form_fields_values))
@if (in_array(2, $product_create_form_fields_values ?? ''))
{{ $product->product_stock_quantity ?? 'N/A' }} |
@endif
@endif
@if (is_array($product_create_form_fields_values))
@if (in_array(6, $product_create_form_fields_values ?? ''))
{{ $product->product_stock_alert ?? 'N/A' }} |
@endif
@endif
{{ get_user_fullname_temporary($product->created_by) ?? 'N/A' }}
|
@if (Auth::user()->can('product-show'))
@endif
@if (Auth::user()->can('product-delete'))
@endif
@if (Auth::user()->can('restore-inactive-products'))
@endif
|
{{-- view details modal --}}
{{-- end of view modal --}}
@endforeach
@endsection