@extends('layouts.app') @section('content') @php $permissions = permission_list(); @endphp @php $user_type = Auth::user()->user_type; @endphp
@if (in_array('dashboard.order_processing_widget',$permissions) || $user_type == 'admin')
{{ _lang('ORDERS IN PROCESSING') }}

{{ $processing_orders }}

@endif @if (in_array('dashboard.pending_payments_widget',$permissions) || $user_type == 'admin')
{{ _lang('PENDING ORDERS') }}

{{ $pending_orders }}

@endif @if (in_array('dashboard.current_day_sales_widget',$permissions) || $user_type == 'admin')
{{ _lang('CURRENT DAY SALES') }}

{{ decimalPlace($current_day_sales, currency()) }}

@endif @if (in_array('dashboard.total_sales_widget',$permissions) || $user_type == 'admin')
{{ _lang('TOTAL SALES') }}

{{ decimalPlace($total_sales, currency()) }}

@endif
@if (in_array('dashboard.month_wise_sales_widget',$permissions) || $user_type == 'admin')
{{ _lang('Month Wise Sales & Order Summary') }}
@endif @if (in_array('dashboard.recent_order_widget',$permissions) || $user_type == 'admin')
{{ _lang('Recent Orders') }}
@foreach($recent_orders as $recent_order) @endforeach
{{ _lang('Order ID') }} {{ _lang('Customer Name') }} {{ _lang('Email') }} {{ _lang('Phone') }} {{ _lang('Delivery') }} {{ _lang('Payment') }} {{ _lang('Grand Total') }} {{ _lang('Action') }}
{{ $recent_order->id }} {{ $recent_order->customer_name }} {{ $recent_order->customer_email }} {{ $recent_order->customer_phone }} {!! xss_clean($recent_order->getDeliveryStatus()) !!} {!! xss_clean($recent_order->getPaymentStatus()) !!} {!! xss_clean(decimalPlace($recent_order->total, $recent_order->currency)) !!}
@endif @endsection @section('js-script') @endsection