@extends('layouts.admin') @section('title') {{ __('Dashboard') }} @endsection @php $logo_path = \App\Models\Utility::get_file('/'); @endphp @section('action-button') @if (Auth::user()->type == 'admin')
@endif @endsection @push('theme-script') @if (Auth::user()->type != 'admin') @endif @endpush @section('content') @if (Auth::user()->type == 'admin')
@else @if (Auth::user()->type == 'owner') @if (Auth::user()->plan != 1) @if (Auth::user()->plan != '' && (Auth::user()->is_plan_purchased == 0 || Auth::user()->plan_expire_date < date('Y-m-d')))

@if (Auth::user()->is_trial_done && Auth::user()->is_plan_purchased == 0) @if (Auth::user()->plan_expire_date < date('Y-m-d')) {{ __('Your trial is Expired on ') }} @else {{ __('Your trial is Expires on ') }} @endif @elseif(Auth::user()->plan != '' && Auth::user()->plan_expire_date < date('Y-m-d')) {{ __('Your Plan is Expired on ') }} @endif @if ($plan) {{ __('Your Plan is Expires on ') }} @endif {{ date('d M Y', strtotime(\Auth::user()->plan_expire_date)) }}

{{ __('Upgrade Plan') }}
@endif @endif @endif
{{ __('Total Projects') }}
{{ $home_data['total_project']['total'] }}
{{ __('Total Tasks') }}
{{ $home_data['total_task']['total'] }}
{{ __('Total Expense') }}
{{ $home_data['total_expense']['total'] }}
{{ __('Total Users') }}
{{ $home_data['total_user'] }}
{{ __('Tasks Overview') }}
{{ __('Total Completed task in last 7 days') }}
{{ __('Project Status') }}
@foreach ($home_data['project_status'] as $status => $val)
{{ __(\App\Models\Project::$status[$status]) }}
@endforeach
@foreach ($home_data['project_status'] as $status => $val)
{{ $val['total'] }}
@endforeach
@if (Auth::user()->type != 'client') @if(empty($users->storage_limit) && !empty($user_plan))
{{ __('Storage Status') }} ({{ $users->storage_limit . 'MB' }} / {{ $user_plan->storage_limit . 'MB' }})
@endif @endif @if (Auth::user()->type != 'client')
@else
@endif
{{ __('Top Due Projects') }}
{{ __('Timesheet Logged Hours') }}
{{ __('Last 7 days') }}
{{ __('Top Due Tasks') }}
@foreach ($home_data['due_tasks'] as $due_task) @endforeach
{{ __('Tasks') }} {{ __('Project') }} {{ __('Stage') }} {{ __('Completion') }}
{{ $due_task->project->title }} {{ \App\Models\ProjectTask::$priority[$due_task->priority] }}
{{ $due_task->taskProgress()['percentage'] }}
{{ __('To do list') }}
{{--
--}}
@if (\Auth::user()->todo->count() > 0) @foreach (\Auth::user()->todo as $todo)
is_complete == 1 ? 'checked' : '' }} data-url="{{ route('todo.update', $todo->id) }}">
@endforeach @else

{{ __('No Todo List Found..!') }}

@endif
{{--
--}}
@endif @endsection @push('script') @if (Auth::user()->type == 'admin') @else @endif @endpush