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

{{ __('home.welcome_message', ['name' => Session::get('user.first_name')]) }}


@if(auth()->user()->can('dashboard.data'))
@if(count($all_locations) > 1) {!! Form::select('dashboard_location', $all_locations, null, ['class' => 'form-control select2', 'placeholder' => __('lang_v1.select_location'), 'id' => 'dashboard_location']); !!} @endif

{{ __('home.total_purchase') }}
{{ __('home.total_sell') }}
{{ __('home.purchase_due') }}
{{ __('home.invoice_due') }}
{{ __('lang_v1.expense') }}
@if(!empty($widgets['after_sale_purchase_totals'])) @foreach($widgets['after_sale_purchase_totals'] as $widget) {!! $widget !!} @endforeach @endif @if(!empty($all_locations))
@component('components.widget', ['class' => 'box-primary', 'title' => __('home.sells_last_30_days')]) {!! $sells_chart_1->container() !!} @endcomponent
@endif @if(!empty($widgets['after_sales_last_30_days'])) @foreach($widgets['after_sales_last_30_days'] as $widget) {!! $widget !!} @endforeach @endif @if(!empty($all_locations))
@component('components.widget', ['class' => 'box-primary', 'title' => __('home.sells_current_fy')]) {!! $sells_chart_2->container() !!} @endcomponent
@endif @if(!empty($widgets['after_sales_current_fy'])) @foreach($widgets['after_sales_current_fy'] as $widget) {!! $widget !!} @endforeach @endif
@component('components.widget', ['class' => 'box-warning']) @slot('icon') @endslot @slot('title') {{ __('lang_v1.sales_payment_dues') }} @show_tooltip(__('lang_v1.tooltip_sales_payment_dues')) @endslot
@lang( 'contact.customer' ) @lang( 'sale.invoice_no' ) @lang( 'home.due_amount' ) @lang( 'messages.action' )
@endcomponent
@component('components.widget', ['class' => 'box-warning']) @slot('icon') @endslot @slot('title') {{ __('lang_v1.purchase_payment_dues') }} @show_tooltip(__('tooltip.payment_dues')) @endslot
@lang( 'purchase.supplier' ) @lang( 'purchase.ref_no' ) @lang( 'home.due_amount' ) @lang( 'messages.action' )
@endcomponent
@component('components.widget', ['class' => 'box-warning']) @slot('icon') @endslot @slot('title') {{ __('home.product_stock_alert') }} @show_tooltip(__('tooltip.product_stock_alert')) @endslot
@lang( 'sale.product' ) @lang( 'business.location' ) @lang( 'report.current_stock' )
@endcomponent
@can('stock_report.view') @if(session('business.enable_product_expiry') == 1)
@component('components.widget', ['class' => 'box-warning']) @slot('icon') @endslot @slot('title') {{ __('home.stock_expiry_alert') }} @show_tooltip( __('tooltip.stock_expiry_alert', [ 'days' =>session('business.stock_expiry_alert_days', 30) ]) ) @endslot
@lang('business.product') @lang('business.location') @lang('report.stock_left') @lang('product.expires_in')
@endcomponent
@endif @endcan
@if(!empty($widgets['after_dashboard_reports'])) @foreach($widgets['after_dashboard_reports'] as $widget) {!! $widget !!} @endforeach @endif @endif
@stop @section('javascript') @if(!empty($all_locations)) {!! $sells_chart_1->script() !!} {!! $sells_chart_2->script() !!} @endif @endsection