@extends('backend.layouts_backend.master2')
@section('title')
Searched Products
@endsection
@section('content')
{{-- header --}}
Products Found ({{ $searched_products_count ?? 0 }})
{{-- end header --}}
{{-- search form --}}
{{-- 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 ($searched_products as $key => $product)
{{ $key + 1 ?? '' }} |
{{ $product->product_code ?? '' }} |
{{ $product->product_name ?? '' }} |
{{-- {{ $product->product_category->product_category_name ?? '' }} | --}}
{{ $product->branch->branch_name ?? '' }} |
@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 ?? '' }} | --}}
{{-- {{ $product->product_image_gallery ?? '' }} | --}}
{{-- {{ $product->product_cost_price ?? '' }} | --}}
{{-- {{ $product->product_selling_price ?? '' }} | --}}
@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 ?? '' }} |
@endif
@endif
@if (is_array($product_create_form_fields_values))
@if (in_array(6, $product_create_form_fields_values ?? ''))
{{ $product->product_stock_alert ?? '' }} |
@endif
@endif
{{ $users[$product->created_by] ?? '' }}
|
@if (Auth::user()->can('product-show'))
@endif
@if (Auth::user()->can('product-edit'))
@endif
@if (Auth::user()->can('product-delete'))
@endif
|
{{-- view details modal --}}
{{-- end of view modal --}}
@endforeach
{{-- paginate --}}
{{ $searched_products->appends(Request::except('page'))->links() }}
@endsection
@section('extra_scripts')
{{-- search dynamic javascript --}}
{{-- end of dynamic search javascript --}}
@endsection