@extends('vendors.layout') @section('content')

{{ __('Welcome back,') }} {{ Auth::guard('vendor')->user()->username . '!' }}

@if (Auth::guard('vendor')->user()->status == 0 && $admin_setting->vendor_admin_approval == 1)
{{ $admin_setting->admin_approval_notice != null ? $admin_setting->admin_approval_notice : 'Your account is deactive!' }}
@endif @php $vendor = Auth::guard('vendor')->user(); $package = \App\Http\Helpers\VendorPermissionHelper::currentPackagePermission($vendor->id); @endphp @if (is_null($package)) @php $pendingMemb = \App\Models\Membership::query() ->where([['vendor_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 @php $newMemb = \App\Models\Membership::query() ->where([['vendor_id', '=', Auth::id()], ['status', 0]]) ->first(); @endphp @if ($newMemb)
{{ __('Your membership is expired. Please purchase a new package / extend the current package.') }}
@endif
{{ __('Please purchase a new package .') }}
@endif @else
@if ($package_count >= 2 && $next_membership) @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 {{ __('Current Package') . ':' }} {{ $current_package->title }} {{ $current_package->term }} @if ($current_membership->is_trial == 1) ({{ __('Expire Date') . ':' }} {{ Carbon\Carbon::parse($current_membership->expire_date)->format('M-d-Y') }}) {{ __('Trial') }} @else ({{ __('Expire Date') . ':' }} {{ $current_package->term === 'lifetime' ? 'Lifetime' : Carbon\Carbon::parse($current_membership->expire_date)->format('M-d-Y') }}) @endif @if ($package_count >= 2 && $next_package)
{{ __('Next Package To Activate') . ':' }} {{ $next_package->title }} {{ $next_package->term }} @if ($current_package->term != 'lifetime' && $current_membership->is_trial != 1) ( {{ __('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) {{ __('Decision Pending') }} @endif
@endif
@endif {{-- dashboard information start --}}

{{ __('Listings') }}

{{ $totalListings }}

@if ($support_status->support_ticket_status == 'active')

{{ __('Support Tickets') }}

{{ $total_support_tickets }}

@endif @if ($current_package != '[]')

{{ __('Subscription Log') }}

{{ $payment_logs }}

@endif
{{ __('Monthly Listing Posts') }} ({{ date('Y') }})
{{ __('Monthly Visitors') }} ({{ date('Y') }})
@endsection @section('script') {{-- chart js --}} @endsection