@php use App\Enums\OfflineRequestStatus; use App\Enums\OrderStatus; use App\Enums\DomainRequestStatus;use Carbon\Carbon; $customizerHidden = 'customizer-hide'; @endphp @extends('layouts/layoutMaster') @section('title', 'Customer Dashboard') @section('vendor-style') @vite([ 'resources/assets/vendor/libs/datatables-bs5/datatables.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-buttons-bs5/buttons.bootstrap5.scss', 'resources/assets/vendor/libs/animate-css/animate.scss', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.scss', 'resources/assets/vendor/libs/select2/select2.scss' ]) @endsection @section('vendor-script') @vite('resources/assets/vendor/libs/jquery/jquery.js') @vite([ 'resources/assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.js', 'resources/assets/vendor/libs/select2/select2.js' ]) @endsection @section('content')

@lang('Welcome to the') {{ config('variables.templateFullName') }} 👋

@if($domainRequest && $domainRequest->status == DomainRequestStatus::APPROVED)
@lang(' You can access your application using the domain') {{ 'https://'.$domainRequest->name.'.'.env('PRIMARY_DOMAIN') }}.
@endif @if ($activePlan)
Your Active Plan

  • @lang('Plan Name'): {{ $activePlan->name }}
  • @lang('Base Price'): {{$settings->currency_symbol}}{{ $activePlan->base_price }}
  • @lang('Per User Price'): {{$settings->currency_symbol}}{{ $activePlan->per_user_price }}
  • @lang('Included Users'): {{ $activePlan->included_users }}
  • @lang('Add-On Users'): {{ $subscription->additional_users }}
  • @lang('Duration'): {{ $activePlan->duration }} {{ ucfirst($activePlan->duration_type->value) }}
  • @lang('Expiry Date'): {{ Carbon::parse(auth()->user()->plan_expired_date)->format('D, d M Y h:i a') }}

{{ round(now()->diffInDays(auth()->user()->plan_expired_date)) }} days

@lang('Remaining')

@lang('Renew Plan') {{-- @lang('Upgrade Plan')--}}
@else
@lang('You Don\'t Have an Active Plan')

Check out the available plans below and subscribe to get started!

@endif @if($offlineRequests->where('status', OfflineRequestStatus::PENDING)->count() > 0) @endif @if($activePlan) @if(!$domainRequest) @elseif($domainRequest->status == DomainRequestStatus::PENDING) @elseif(!$domainRequest->updated_at->diffInDays(now()) > 5 && $domainRequest->status == DomainRequestStatus::APPROVED) @elseif($domainRequest->status == DomainRequestStatus::REJECTED) @elseif($domainRequest->status == DomainRequestStatus::PENDING) @elseif($domainRequest->status == DomainRequestStatus::CANCELLED) @endif @endif
Available Plans
@foreach ($availablePlans as $plan)
@if($activePlan && $activePlan->id == $plan->id) Current Plan @elseif($activePlan && $plan->base_price > $activePlan->base_price) Upgrade Available @endif
{{ $plan->name }}

{{$settings->currency_symbol}}{{ $plan->base_price }}

base price for {{ $plan->duration }} {{ ucfirst($plan->duration_type->value) }}

  • Included Users: {{ $plan->included_users }}
  • Additional User: {{$settings->currency_symbol}}{{ $plan->per_user_price }} / user
  • @foreach(ModuleConstants::All_MODULES as $module)
  • {{ $module }} @if(collect($plan->modules)->contains($module)) @else @endif
  • @endforeach

{{ $plan->description }}

@if($activePlan && $activePlan->id == $plan->id) @elseif($activePlan && $plan->base_price > $activePlan->base_price) @elseif($activePlan && $plan->base_price <= $activePlan->base_price) @else @endif
@endforeach
Order History
@if ($orders->isNotEmpty()) @foreach ($orders as $order) @endforeach
Order ID Type Plan Additional Users Amount Gateway Status Created At Actions
{{ $order->id }} {{ $order->type }}

{{ $order->plan->name }}

Duration: {{ $order->plan->duration }} {{ $order->plan->duration_type->value }}

Included Users: {{ $order->plan->included_users }}

{{$order->additional_users}} {{$settings->currency_symbol}}{{ $order->amount }} {{$order->payment_gateway}} @if($order->status == OrderStatus::PENDING) Pending @elseif($order->status == OrderStatus::COMPLETED) Completed @elseif($order->status == OrderStatus::CANCELLED) Cancelled @else {{$order->status}} @endif {{ $order->created_at->format('Y-m-d') }} @if($order->status == OrderStatus::COMPLETED) @else

N/A

@endif
@else

You have no order history.

@endif
Offline Requests
@if ($offlineRequests->isNotEmpty()) @foreach ($offlineRequests as $request) @endforeach
Request ID Type Plan Amount Additional Users Total Amount Status Created At Action
{{ $request->id }} {{ ucfirst($request->type->value) }}

{{ $request->plan->name }}

Duration: {{ $request->plan->duration }} {{ $request->plan->duration_type->value }}

Included Users: {{ $request->plan->included_users }}

{{$settings->currency_symbol. $request->plan->base_price }} {{ $request->additional_users }} {{$settings->currency_symbol. $request->total_amount }} @if($request->status == OfflineRequestStatus::PENDING) Pending @elseif($request->status == OfflineRequestStatus::APPROVED) Approved @elseif($request->status == OfflineRequestStatus::REJECTED) Rejected @elseif($request->status == OfflineRequestStatus::CANCELLED) Cancelled @endif {{ $request->created_at->format('Y-m-d') }} @if ($request->status == OfflineRequestStatus::PENDING) Cancel @endif
@else

You have no offline requests.

@endif
Domain Requests
@if ($domainRequests->isNotEmpty()) @foreach ($domainRequests as $request) @endforeach
Request ID Domain Status Created At Actions
{{ $request->id }} {{ $request->name }} @if($request->status == DomainRequestStatus::PENDING) Pending @elseif($request->status == DomainRequestStatus::APPROVED) Approved @elseif($request->status == DomainRequestStatus::REJECTED) Rejected @elseif($request->status == DomainRequestStatus::CANCELLED) Cancelled @endif {{ $request->created_at->format('Y-m-d') }} @if ($request->status == DomainRequestStatus::PENDING) Cancel @endif
@else

You have no domain requests.

@endif
{{--
Basic Information
@csrf
Notification Settings
@csrf
Business Information
@csrf
--}}
@if($activePlan) @include('_partials._customerModals.add_more_users_model') @include('_partials._customerModals.plan_upgrade_model') @include('_partials._customerModals.renew_plan_model') @else @include('_partials._customerModals.initial_payment_model') @endif @endsection @section('page-script') @if($settings->razorpay_enabled) @endif @if($settings->paypal_enabled) @endif @if(!$activePlan) @else @endif @if($gateways['stripe']) @if(!$activePlan) @else @endif @endif @endsection