@extends('backend.layout.main') @section('content') @push('css') @endpush @php if ($general_setting->theme == 'default.css') { $color = '#733686'; $color_rgba = 'rgba(115, 54, 134, 0.8)'; } elseif ($general_setting->theme == 'green.css') { $color = '#2ecc71'; $color_rgba = 'rgba(46, 204, 113, 0.8)'; } elseif ($general_setting->theme == 'blue.css') { $color = '#3498db'; $color_rgba = 'rgba(52, 152, 219, 0.8)'; } elseif ($general_setting->theme == 'dark.css') { $color = '#34495e'; $color_rgba = 'rgba(52, 73, 94, 0.8)'; } @endphp
@php $lims_warehouse_list = App\Models\Warehouse::where('is_active', true)->get(); @endphp @if (!config('database.connections.saleprosaas_landlord') && \Auth::user()->role_id <= 2) @if (isset($versionUpgradeData['alert_version_upgrade_enable']) && $versionUpgradeData['alert_version_upgrade_enable'] == true) @endif @endif

{{ __('db.welcome') }} {{ Auth::user()->name }}

@if (in_array('restaurant', explode(',', cache()->get('general_setting')->modules))) @if (Auth::user()->role_id > 2 && isset(Auth::user()->service_staff)) @php $cooked = DB::table('sales') ->where('waiter_id', Auth::user()->id) ->where('sale_status', 5) ->orWhere('sale_status', 6) ->where('sales.created_at', '>=', now()->subDay()) ->count(); @endphp @elseif(Auth::user()->role_id <= 2) @php $cooked = DB::table('sales') ->where('sale_status', 6) ->where('sales.created_at', '>=', now()->subDay()) ->count(); @endphp @endif @endif @if (in_array('restaurant', explode(',', cache()->get('general_setting')->modules)))
{{ $cooked }} {{ __('db.Orders to serve') }}
@endif @php $revenue_profit_summary = $role_has_permissions_list ->where('name', 'revenue_profit_summary') ->first(); @endphp @if ($revenue_profit_summary)
@if (\Auth::user()->role_id <= 2) @endif
@endif
@if ($revenue_profit_summary)
{{ number_format((float) $revenue, $general_setting->decimal, '.', '') }}
{{ __('db.revenue') }}
{{ number_format((float) $return, $general_setting->decimal, '.', '') }}
{{ __('db.Sale Return') }}
{{ number_format((float) $purchase_return, $general_setting->decimal, '.', '') }}
{{ __('db.Purchase Return') }}
{{ number_format((float) $profit, $general_setting->decimal, '.', '') }}
{{ __('db.profit') }}
@endif @php $cash_flow = $role_has_permissions_list->where('name', 'cash_flow')->first(); @endphp @if ($cash_flow)

{{ __('db.Cash Flow') }}

@endif @php $monthly_summary = $role_has_permissions_list->where('name', 'monthly_summary')->first(); @endphp @if ($monthly_summary)

{{ date('F') }} {{ date('Y') }}

@endif
@php $yearly_report = $role_has_permissions_list->where('name', 'yearly_report')->first(); @endphp @if ($yearly_report)

{{ __('db.yearly report') }}

@endif

{{ __('db.Recent Transaction') }}

{{ __('db.latest') }} 5
{{ __('db.date') }} {{ __('db.reference') }} {{ __('db.customer') }} {{ __('db.status') }} {{ __('db.grand total') }}
{{ __('db.date') }} {{ __('db.reference') }} {{ __('db.Supplier') }} {{ __('db.status') }} {{ __('db.grand total') }}
{{ __('db.date') }} {{ __('db.reference') }} {{ __('db.customer') }} {{ __('db.status') }} {{ __('db.grand total') }}
{{ __('db.date') }} {{ __('db.reference') }} {{ __('db.Amount') }} {{ __('db.Paid By') }}

{{ __('db.Best Seller') . ' ' . date('F') }}

{{ __('db.top') }} 5
{{ __('db.Product Details') }} {{ __('db.qty') }}

{{ __('db.Best Seller') . ' ' . date('Y') . '(' . __('db.qty') . ')' }}

{{ __('db.top') }} 5
{{ __('db.Product Details') }} {{ __('db.qty') }}

{{ __('db.Best Seller') . ' ' . date('Y') . '(' . __('db.Price') . ')' }}

{{ __('db.top') }} 5
{{ __('db.Product Details') }} {{ __('db.grand total') }}
@endsection @push('scripts') @endpush