@extends('layouts.app')
@section('title', __('lang_v1.product_sell_report'))
@section('content')
@component('components.filters', ['title' => __('report.filters')])
{!! Form::open([
'url' => action([\App\Http\Controllers\ReportController::class, 'getStockReport']),
'method' => 'get',
'id' => 'product_sell_report_form',
]) !!}
{!! Form::label('psr_customer_group_id', __('lang_v1.customer_group_name') . ':') !!}
{!! Form::select('psr_customer_group_id', $customer_group, null, [
'class' => 'form-control select2',
'style' => 'width:100%',
'id' => 'psr_customer_group_id',
]) !!}
@if (request()->session()->get('business.district') == '1')
{!! Form::label('district_id', __('lang_v1.districts') . ':') !!}
{!! Form::select('district_id', $districts, null, [
'class' => 'form-control select2',
'id' => 'district_id',
'style' => 'width:100%',
]) !!}
@endif
{!! Form::label('user_filter', __('report.user') . ':') !!}
{!! Form::select('user_filter', $usersFilter, null, [
'class' => 'form-control select2',
'id' => 'user_filter',
'placeholder' => __('lang_v1.all'),
'style' => 'width:100%',
]) !!}
{!! Form::label('category_id', __('product.category') . ':') !!}
{!! Form::select('category_id', $categories, null, [
'class' => 'form-control select2',
'style' => 'width:100%',
'id' => 'psr_filter_category_id',
'placeholder' => __('lang_v1.all'),
]) !!}
@if (in_array('drivers', $enabled_modules))
{!! Form::label('driver_id', __('lang_v1.drivers') . ':') !!}
{!! Form::select('driver_id', $drivers, null, [
'class' => 'form-control select2',
'style' => 'width:100%',
'id' => 'driver_id',
'placeholder' => __('lang_v1.all'),
]) !!}
@endif
{!! Form::label('brand_id', __('product.brand') . ':') !!}
{!! Form::select('brand_id', $brands, null, [
'class' => 'form-control select2',
'style' => 'width:100%',
'id' => 'psr_filter_brand_id',
'placeholder' => __('lang_v1.all'),
]) !!}
{!! Form::label('product_sr_date_filter', __('report.date_range') . ':') !!}
{!! Form::text('date_range', null, [
'placeholder' => __('lang_v1.select_a_date_range'),
'class' => 'form-control',
'id' => 'product_sr_date_filter',
'readonly',
]) !!}
{!! Form::label('product_sr_start_time', __('lang_v1.time_range') . ':') !!}
@php
$startDay = Carbon::now()->startOfDay();
$endDay = $startDay->copy()->endOfDay();
@endphp
{!! Form::text('start_time', @format_time($startDay), [
'style' => __('lang_v1.select_a_date_range'),
'class' => 'form-control width-50 f-left',
'id' => 'product_sr_start_time',
]) !!}
{!! Form::text('end_time', @format_time($endDay), [
'class' => 'form-control width-50 f-left',
'id' => 'product_sr_end_time',
]) !!}
{!! Form::close() !!}
@endcomponent
| @lang('sale.product') |
@lang('product.sku') |
{{ $product_custom_field1 }} |
{{ $product_custom_field2 }} |
@lang('sale.customer_name') |
@if (request()->session()->get('business.district') == 1)
@lang('lang_v1.district_name') |
@lang('lang_v1.district_code') |
@endif
@lang('lang_v1.contact_id') |
@lang('lang_v1.customer_group') |
@lang('sale.invoice_no') |
@lang('messages.date') |
@lang('sale.qty') |
@if (request()->session()->get('business.enable_sub_units') == 1)
@lang('sale.sub_unit') |
@endif
@lang('sale.unit_price') |
@lang('sale.discount') |
@lang('sale.tax') |
@lang('sale.price_inc_tax') |
@lang('sale.total') |
@lang('lang_v1.payment_method') |
@lang('lang_v1.created_by') |
@if (session('business.enable_lot_number'))
@endif
| @lang('sale.product') |
@lang('product.sku') |
@lang('sale.customer_name') |
@if (request()->session()->get('business.district') == 1)
@lang('lang_v1.district_name') |
@lang('lang_v1.district_code') |
@endif
@lang('sale.invoice_no') |
@lang('messages.date') |
@lang('lang_v1.purchase_ref_no') |
@lang('lang_v1.lot_number') |
@lang('lang_v1.supplier_name') |
@lang('sale.qty') |
@if (request()->session()->get('business.enable_sub_units') == 1)
@lang('sale.sub_unit') |
@endif
@lang('lang_v1.created_by') |
| @lang('sale.product') |
@lang('product.sku') |
@lang('lang_v1.product_image') |
@lang('report.current_stock') |
@lang('report.total_unit_sold') |
@if (request()->session()->get('business.enable_sub_units') == 1)
@lang('sale.sub_unit') |
@endif
@lang('sale.total') |
@if (request()->session()->get('business.enable_product_custom_fields') == 1)
@lang('sale.custom_field_1') |
@lang('sale.custom_field_2') |
@lang('sale.custom_field_3') |
@lang('sale.custom_field_4') |
@endif
@include('report.partials.product_sell_report_by_category')
@include('report.partials.product_sell_report_by_brand')
| @lang('lang_v1.location') |
@lang('lang_v1.qty') |
@lang('lang_v1.unit') |
| @lang('lang_v1.loading') |
@endsection
@section('javascript')
@endsection