@extends('layouts.app') @section('title', __('lang_v1.update_multiple_products')) @section('content')

@lang('lang_v1.update_multiple_products')

{{-- فلترة المنتجات --}} @component('components.filters', ['title' => __('report.filters')])
{!! Form::label('location_id', __('business.business_location') . ':') !!} {!! Form::select('location_id', ['' => __('lang_v1.all'), 'none' => 'لا أحد'] + $locations->pluck('name', 'id')->toArray(), request('location_id'), ['class' => 'form-control select2', 'id' => 'product_filter_location', 'style' => 'width:100%']) !!}
{!! Form::label('category_id', __('product.category') . ':') !!} {!! Form::select('category_id', ['' => __('lang_v1.all'), 'none' => 'لا أحد'] + $categories->pluck('name', 'id')->toArray(), request('category_id'), ['class' => 'form-control select2', 'id' => 'product_filter_category', 'style' => 'width:100%']) !!}
{!! Form::label('sub_category_id', __('product.sub_category') . ':') !!} {!! Form::select('sub_category_id', ['' => __('lang_v1.all'), 'none' => 'لا أحد'], request('sub_category_id'), ['class' => 'form-control select2', 'id' => 'product_filter_sub_category', 'style' => 'width:100%']) !!}
{!! Form::label('brand_id', __('product.brand') . ':') !!} {!! Form::select('brand_id', ['' => __('lang_v1.all'), 'none' => 'لا أحد'] + $brands->pluck('name', 'id')->toArray(), request('brand_id'), ['class' => 'form-control select2', 'id' => 'product_filter_brand', 'style' => 'width:100%']) !!}
{!! Form::label('search_term', __('sale.product') . ' / ' . __('product.sku') . ':') !!}
{!! Form::text('search_term', request('search_term'), ['class' => 'form-control', 'id' => 'product_search_term', 'placeholder' => __('sale.product') . ' / ' . __('product.sku')]) !!}
@endcomponent
@component('components.widget', ['class' => 'box-primary']) {!! Form::open(['url' => action([\App\Http\Controllers\ProductController::class, 'updateMultipleProducts']), 'method' => 'get', 'id' => 'update_multiple_products_form' ]) !!} {{-- حقول مخفية لحفظ قيم الفلترة --}} {!! Form::hidden('location_id', request('location_id'), ['id' => 'form_location_id']) !!} {!! Form::hidden('category_id', request('category_id'), ['id' => 'form_category_id']) !!} {!! Form::hidden('sub_category_id', request('sub_category_id'), ['id' => 'form_sub_category_id']) !!} {!! Form::hidden('brand_id', request('brand_id'), ['id' => 'form_brand_id']) !!} {!! Form::hidden('search_term', request('search_term'), ['id' => 'form_search_term']) !!} {!! Form::hidden('show_non_zero_qty', request('show_non_zero_qty'), ['id' => 'form_show_non_zero_qty']) !!} {!! Form::hidden('show_max_qty', request('show_max_qty'), ['id' => 'form_show_max_qty']) !!} {!! Form::hidden('show_alert_qty', request('show_alert_qty'), ['id' => 'form_show_alert_qty']) !!}
@include('product.partials.products_table_rows')
@lang('lang_v1.image') @lang('sale.product') @lang('product.sku') @lang('business.location') @lang('product.category') @lang('product.sub_category') @lang('product.brand') @lang('lang_v1.quantity') {{ __('lang_v1.max_quantity_upper_limit') }} {{ __('lang_v1.alert_quantity_lower_limit') }}
{{ $products->links() }}
{!! Form::close() !!} @endcomponent

مسح الباركود

@endsection @section('javascript') @endsection