@extends('layouts.admin') @section('page-title') {{ __('Dashboard') }} @endsection @php $logo = asset(Storage::url('uploads/logo/')); $company_logo = \App\Models\Utility::getValByName('company_logo'); @endphp @push('script-page') @endpush @section('content') @if (\Auth::user()->type == 'Owner')

user-image {{ __(Auth::user()->name) }}

{{ __('Have a nice day! Did you know that you can quickly add your favorite product or category to the store?') }}

{{ __('Top Products') }}
@foreach ($products as $product) @foreach ($item_id as $k => $item) @if ($product->id == $item) @endif @endforeach @endforeach
{{ __('Product') }} {{ __('Quantity') }} {{ __('Price') }}
@if (!empty($product->is_cover)) images @else images @endif
{{ $product->name }}
{{ $product->quantity }}
{{ \App\Models\Utility::priceFormat($product->price) }}
{{ $totle_qty[$k] }} {{ __('Sold') }}
{!! QrCode::generate($store_id['store_url']) !!}
{{ $store_id->name }}
{{ __('Store Link') }}
{{ __('Total Products') }}

{{ $newproduct }}

{{ __('Total Sales') }}

{{ \App\Models\Utility::priceFormat($totle_sale) }}

{{ __('Total Orders') }}

{{ $totle_order }}

{{ __('Orders') }}
{{ __('Recent Orders') }}
@if (!empty($new_orders)) @foreach ($new_orders as $order) @if ($order->status != 'Cancel Order') @endif @endforeach @endif
{{ __('Orders') }} {{ __('Date') }} {{ __('Name') }} {{ __('Value') }} {{ __('Payment Type') }} {{ __('Status') }} {{ __('Action') }}
{{ \App\Models\Utility::dateFormat($order->created_at) }}
{{ $order->name }}
{{ \App\Models\Utility::priceFormat($order->price) }}
{{ $order->payment_type }}
@else
{{ __('Total Store') }}

{{ $user->total_user }}

{{--
{{ __('Paid Store') }}

{{ $user['total_paid_user'] }}

--}}
{{ __('Total Orders') }}

{{ $user->total_orders }}

{{--
{{ __('Total Order Amount') }}

{{ env('CURRENCY_SYMBOL') . $user['total_orders_price'] }}

--}}
{{ __('Total Plans') }}

{{ $user['total_plan'] }}

{{--
{{ __('Most Purchase Plan') }}

{{ !empty($user['most_purchese_plan']) ? $user['most_purchese_plan'] : '-' }}

--}}
{{ __('Recent Orders') }}
@endif @endsection @push('script-page') @endpush