@extends('layouts.admin') @section('page-title') {{ __('Dashboard') }} @endsection @php use App\Models\Utility; $client_keyword = Auth::user()->getGuard() == 'client' ? 'client.' : ''; $setting = Utility::getAdminPaymentSetting(); @endphp @section('content')
@if (Auth::user()->type == 'admin')
@if (empty($setting['pusher_app_id']) || empty($setting['pusher_app_key']) || empty($setting['pusher_app_secret']) || empty($setting['pusher_app_cluster']))
{{ __('Please Add Pusher Details in Setting Page ') }}{{ __(' here') }}
@endif {{-- @if (empty($setting['MAIL_DRIVER']) || empty($setting['MAIL_HOST']) || empty($setting['MAIL_PORT']) || empty($setting['MAIL_USERNAME']) || empty($setting['MAIL_PASSWORD']) || empty($setting['MAIL_PASSWORD']))
{{ __('Please Add Mail Details in Setting Page ') }} {{ __('here') }}
@endif --}} @if (empty($setting['mail_driver']) || empty($setting['mail_host']) || empty($setting['mail_port']) || empty($setting['mail_username']) || empty($setting['mail_password']) || empty($setting['mail_encryption']) || empty($setting['mail_from_address']) || empty($setting['mail_from_name']))
{{ __('Please Add Mail Details in Setting Page ') }} {{ __('here') }}
@endif

{{ __('Paid User') }} : {{ $totalPaidUsers }}

{{ __('Total Users') }}

{{ $totalUsers }}

{{ __('Order Amount') }} : {{ (env('CURRENCY_SYMBOL') != '' ? env('CURRENCY_SYMBOL') : '$') . $totalOrderAmount }}

{{ __('Total Orders') }}

{{ $totalOrders }}

{{ __('Most purchase plan') }} : @if ($mostPlans) {{ $mostPlans->name }} @else - @endif

{{ __('Total Plans') }}

{{ $totalPlans }}

{{ __('Recent Orders') }}
@elseif($currentWorkspace)

{{ __('Total Project') }}

{{ $totalProject }}

{{ __('Total Task') }}

{{ $totalTask }}

{{ __('Total Bug') }}

{{ $totalBugs }}

{{ __('Total User') }}

{{ $totalMembers }}

{{ __('Tasks') }}
{{ $completeTask }} {{ __('Tasks completed out of') }} {{ $totalTask }}
@foreach ($tasks as $task) @if ($currentWorkspace->permission == 'Owner' || Auth::user()->getGuard() == 'client') @endif @endforeach
@php($due_date = '' . date('Y-m-d', strtotime($task->due_date)) . ' ') {{ __('Due Date') }} : {!! $due_date !!} {{ __('Status') }}
@if ($task->complete == '1') {{ __($task->status) }} @else {{ __($task->status) }} @endif
{{ __('Project') }}
{{ $task->project->name }}
{{ __('Assigned to') }}
@foreach ($task->taskUsers() as $user) {{ isset($tasksUsers[$user]) ? $tasksUsers[$user] : '-' }} @endforeach
@if (Auth::user()->getGuard() != 'client')
{{ __('Project Status') }}
On Going
On Hold
Finished
{{-- @foreach ($arrProcessPer as $index => $value)
{{ $value }}%

{{ __($arrProcessLabel[$index]) }}

@endforeach --}}
@endif
{{ __('Tasks Overview') }}
@if (Auth::user()->getGuard() != 'client')
{{ __('Storage Status') }} ({{ $users->storage_limit . 'MB' }} / {{ $plan->storage_limit . 'MB' }})
@endif @if (Auth::user()->getGuard() == 'client')
{{ __('Project Status') }}
On Going
On Hold
Finished
{{-- @foreach ($arrProcessPer as $index => $value)
{{ $value }}%

{{ __($arrProcessLabel[$index]) }}

@endforeach --}}
@endif
@else
{{ __('There is no active Workspace. Please create Workspace from right side menu.') }}
@endif
@endsection @push('scripts') @if (Auth::user()->type == 'admin') @elseif(isset($currentWorkspace) && $currentWorkspace) @endif @if (Auth::user()->type == 'admin') @elseif(isset($currentWorkspace) && $currentWorkspace) @if (Auth::user()->getGuard() != 'client') @endif @endif @endpush