@extends('layouts.app') @section('title', __('sale.products')) @section('content')

@lang('sale.products') @lang('lang_v1.manage_products')

@component('components.filters', ['title' => __('report.filters')])
{!! Form::label('type', __('product.product_type') . ':') !!} {!! Form::select('type', ['single' => 'Single', 'variable' => 'Variable'], null, ['class' => 'form-control select2', 'style' => 'width:100%', 'id' => 'product_list_filter_type', 'placeholder' => __('lang_v1.all')]); !!}
{!! Form::label('category_id', __('product.category') . ':') !!} {!! Form::select('category_id', $categories, null, ['class' => 'form-control select2', 'style' => 'width:100%', 'id' => 'product_list_filter_category_id', 'placeholder' => __('lang_v1.all')]); !!}
{!! Form::label('unit_id', __('product.unit') . ':') !!} {!! Form::select('unit_id', $units, null, ['class' => 'form-control select2', 'style' => 'width:100%', 'id' => 'product_list_filter_unit_id', 'placeholder' => __('lang_v1.all')]); !!}
{!! Form::label('tax_id', __('product.tax') . ':') !!} {!! Form::select('tax_id', $taxes, null, ['class' => 'form-control select2', 'style' => 'width:100%', 'id' => 'product_list_filter_tax_id', 'placeholder' => __('lang_v1.all')]); !!}
{!! Form::label('brand_id', __('product.brand') . ':') !!} {!! Form::select('brand_id', $brands, null, ['class' => 'form-control select2', 'style' => 'width:100%', 'id' => 'product_list_filter_brand_id', 'placeholder' => __('lang_v1.all')]); !!}
@endcomponent @component('components.widget', ['class' => 'box-primary', 'title' => __('lang_v1.all_products')]) @can('product.create') @slot('tool')
@lang('messages.add')
@endslot @endcan @can('product.view')
  @lang('sale.product') @lang('product.product_type') @lang('product.category') @lang('product.sub_category') @lang('product.unit') @lang('lang_v1.unit_cost') @lang('lang_v1.profit_margin') @lang('lang_v1.unit_price') @lang('product.sku') @lang('messages.action')
@can('product.delete') {!! Form::open(['url' => action('ProductController@massDestroy'), 'method' => 'post', 'id' => 'mass_delete_form' ]) !!} {!! Form::hidden('selected_rows', null, ['id' => 'selected_rows']); !!} {!! Form::submit(__('lang_v1.delete_selected'), array('class' => 'btn btn-xs btn-danger', 'id' => 'delete-selected')) !!} {!! Form::close() !!} @endcan   {!! Form::open(['url' => action('ProductController@massDeactivate'), 'method' => 'post', 'id' => 'mass_deactivate_form' ]) !!} {!! Form::hidden('selected_products', null, ['id' => 'selected_products']); !!} {!! Form::submit(__('lang_v1.deactivate_selected'), array('class' => 'btn btn-xs btn-warning', 'id' => 'deactivate-selected')) !!} {!! Form::close() !!} @show_tooltip(__('lang_v1.deactive_product_tooltip'))
@endcan @endcomponent
@endsection @section('javascript') @endsection