@extends('user.layout') @php use App\Http\Helpers\UserPermissionHelper; use App\Models\User\Language; use Illuminate\Support\Facades\Auth; $default = Language::where('is_default', 1)->first(); $user = Auth::guard('web')->user(); $package = UserPermissionHelper::currentPackage($user->id); if (!empty($user)) { $permissions = UserPermissionHelper::packagePermission($user->id); $permissions = json_decode($permissions, true); } @endphp @section('content')

{{ __('Welcome back') }}, {{ Auth::guard('web')->user()->first_name }} {{ Auth::guard('web')->user()->last_name }}!

@if (is_null($package)) @php $pendingMemb = \App\Models\Membership::query() ->where([['user_id', '=', Auth::id()], ['status', 0]]) ->whereYear('start_date', '<>', '9999') ->orderBy('id', 'DESC') ->first(); $pendingPackage = isset($pendingMemb) ? \App\Models\Package::query()->findOrFail($pendingMemb->package_id) : null; @endphp @if ($pendingPackage)
{{__('You have requested a package which needs an action (Approval / Rejection) by Admin') . '. ' . __('You will be notified via mail once an action is taken') . '.' }}
{{ __('Pending Package') }}: {{ $pendingPackage->title }} {{ __($pendingPackage->term) }} {{ __('Decision Pending') }}
@else
{{ __('Your membership is expired') . '. ' . __('Please purchase a new package / extend the current package') . '.' }}
@endif @else
@if ($package_count >= 2) @if ($next_membership->status == 0) {{__('You have requested a package which needs an action (Approval / Rejection) by Admin') . '. ' . __('You will be notified via mail once an action is taken') . '.' }}
@elseif ($next_membership->status == 1) {{__('You have another package to activate after the current package expires') . '. ' . __('You cannot purchase / extend any package, until the next package is activated') . '.' }}
@endif @endif {{ $keywords['Current Package'] ?? __('Current Package') }}: {{ $current_package->title }} {{ __($current_package->term)}} @if ($current_membership->is_trial == 1) ({{ $keywords['Expire Date'] ?? __('Expire Date') }}: {{ Carbon\Carbon::parse($current_membership->expire_date)->format('M-d-Y') }}) {{ $keywords['Trial'] ?? __('Trial') }} @else ({{ $keywords['Expire Date'] ?? __('Expire Date') }}: {{ $current_package->term === 'lifetime' ? __('Lifetime') : Carbon\Carbon::parse($current_membership->expire_date)->format('M-d-Y') }}) @endif @if ($package_count >= 2)
{{ $keywords['Next Package To Activate'] ?? __('Next Package To Activate') }}: {{ $next_package->title }} {{ __($next_package->term) }} @if ($current_package->term != 'lifetime' && $current_membership->is_trial != 1) ( {{ $keywords['Activation Date'] ?? __('Activation Date') }}: {{ Carbon\Carbon::parse($next_membership->start_date)->format('M-d-Y') }}, {{ __('Expire Date') }}: {{ $next_package->term === 'lifetime' ? __('Lifetime') : Carbon\Carbon::parse($next_membership->expire_date)->format('M-d-Y') }}) @endif @if ($next_membership->status == 0) {{ $keywords['Decision Pending'] ?? __('Decision Pending') }} @endif
@endif
@endif

{{ __('Cars') }}

{{ $totalProperties }}

{{ __('Motorcycle') }}

{{ $totalProjects }}

{{ __('Agents') }}

{{ $agents }}

{{ $keywords['Registered Users'] ?? __('Registered Users') }}

{{ $customers }}

{{ $keywords['Followers'] ?? __('Followers') }}

{{ $followers }}

{{ $keywords['Followings'] ?? __('Followings') }}

{{ $followings }}

{{ __('Property Messages') }}

{{ $propertyMessages }}

{{ __('Project Messages') }}

{{ $projectMessages }}

{{ __('Monthly Properties Post') }} ({{ date('Y') }})
{{ __('Monthly Projects Post') }} ({{ date('Y') }})
@endsection @section('scripts') @endsection