@extends('layouts.admin') @section('page-title') {{ __('Dashboard') }} @endsection @php $client_keyword = Auth::user()->getGuard() == 'client' ? 'client.' : ''; @endphp @section('content')
@if (Auth::user()->type == 'admin')
@if (empty(env('PUSHER_APP_ID')) || empty(env('PUSHER_APP_KEY')) || empty(env('PUSHER_APP_SECRET')) || empty(env('PUSHER_APP_CLUSTER')))
{{ __('Please Add Pusher Detail in Setting Page ') }}{{ __('here') }}
@endif @if (empty(env('MAIL_DRIVER')) || empty(env('MAIL_HOST')) || empty(env('MAIL_PORT')) || empty(env('MAIL_USERNAME')) || empty(env('MAIL_PASSWORD')) || empty(env('MAIL_PASSWORD')))
{{ __('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 --}} @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->users() as $user) {{ isset($user->name) ? $user->name : '-' }} @endforeach
{{ __('Assigned to') }}
@foreach ($task->taskUsers() as $user) {{ isset($tasksUsers[$user]) ? $tasksUsers[$user] : '-' }} @endforeach
{{ __('Tasks Overview') }}
{{ __('Project Status') }}
On Going
On Hold
Finished
{{-- @foreach ($arrProcessPer as $index => $value)
{{ $value }}%

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

@endforeach --}}
@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) @endif @endpush