@extends('layouts.app')
@section('title', __('lang_v1.update_multiple_products'))
@section('content')
{{-- فلترة المنتجات --}}
@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%']) !!}
@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']) !!}
{!! Form::close() !!}
@endcomponent
مسح الباركود
@endsection
@section('javascript')
تحديث صورة المنتج
أو
@endsection