@extends('layouts.adminLayout.admin_design') @section('content')

{{ $title }}

{{ Form::open(['url' => route('product_mix'), 'method'=>'POST', 'name' => 'product_mix_report', 'id' => 'productMix']) }} {{Form::hidden('products_taxable',$products_taxable,['id'=>'products_taxable'])}}
{{ Form::text('datetimes', '', ['class' => 'form-control datetimes', 'id'=>'datetimes','style'=>'width:100%']) }}
{{ Form::select('user_id', [''=>'Search employee']+$users, '', ['class' => 'form-control select2 employees col-md-10', 'id'=>'user_id']) }}
{{ Form::select('station_id[]', $stations, '', ['class' => 'form-control select2 stations input-sm', "multiple"=>"multiple", 'id'=>'station_id']) }}
{{ Form::select('categories[]', $categories, '', ['class' => 'form-control select2 categories input-sm', "multiple"=>"multiple", 'id'=>'categories']) }}
{{ Form::select('subcategories[]', $subcategories, '', ['class' => 'form-control select2 categories input-sm', "multiple"=>"multiple", 'id'=>'subcategories']) }}
{{ Form::select('vendor_id', [''=>'Search vendor']+$vendors, '', ['class' => 'form-control select2 vendorclear vendors col-md-10', 'id'=>'vendor_id']) }}
{{ Form::select('weekdays[]', [2=>'Monday',3=>'Tuesday',4=>'Wednesday',5=>'Thrusday',6=>'Friday',7=>'Saturday',1=>'Sunday'], '', ["multiple"=>"multiple",'class' => 'form-control select2 stations weekdaysclear input-sm', 'id'=>'weekdays']) }}
@if( $rtype == 'enterprise')

{{ Form::select('establishmentIds[]',$establishments,"",['class'=>'form-control select2 establishment input-sm','multiple'=>'multiple','id'=>'establishmentIds']) }}
@endif
{{ Form::button(' '. __('lbl.filter'), ["class"=>"clickbtncommon btn btn-sm btn-primary","id"=>"dateSearch"]) }}
{{ Form::close() }} {{ Form::open(['url' => route('export_mix_report'), 'method'=>'POST', 'name' => 'export_mix_report', 'id' => 'excelMix']) }}
{{ Form::select('monthrange[]',$monthdate,$default_monthdate,['class'=>'form-control select2 establishment input-sm','multiple'=>'multiple','id'=>'monthrange']) }}
{{ Form::button(' '. __('lbl.excel_mix'), ["class"=>"clickbtncommon btn btn-sm btn-primary downloadProductMixReport","value"=>"excel_mix","type"=>"submit","name"=>"export"]) }}
{{ Form::close() }}

{{ __('lbl.top_ten_products') }}

{{ __('lbl.top_ten_quantity') }}

{{ $title }}

@if($products_taxable == 1) @endif
{{__('lbl.product_name')}} {{__('lbl.sales_price')}} {{__('lbl.sales_price_percentage')}} {{__('lbl.qty')}} {{__('lbl.item_discount')}} {{__('lbl.order_discount')}} {{__('lbl.average_price')}} {{__('lbl.cost_of_goods')}} {{__('lbl.percentage_cog')}} {{__('lbl.gm')}} {{__('lbl.gm_percentage')}}{{__('lbl.tax_amount')}}{{__('lbl.sales_price_exl_disc')}}

{{Form::hidden('startTime',$startTime,['id'=>'startTime'])}} {{Form::hidden('endTime',$endTime,['id'=>'endTime'])}} @endsection @section('pagescript') {!! Helper::pagejs([ 'js/lib/datatables.net/js/jquery.dataTables.min.js', 'js/lib/datatables.net-bs/js/dataTables.bootstrap.min.js', 'js/lib/select2/dist/js/select2.full.min.js', 'js/lib/moment/min/moment.min.js', 'js/lib/bootstrap-daterangepicker/daterangepicker.js', 'js/lib/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js', 'js/lib/plugins/timepicker/bootstrap-timepicker.min.js', 'js/backend/report/product_mix.js', 'js/backend/canvasjs/canvasjs.min.js' ]) !!} @stop