@extends('layouts.app', ['title' => __tr('Vendor Details')]) @php $vendorIdOrUid = $vendorIdOrUid ?? getVendorUid(); $vendorViewBySuperAdmin = $vendorViewBySuperAdmin ?? null; @endphp @section('content') @if(hasCentralAccess()) @include('users.partials.header', [ 'title' => __tr('__vendorTitle__ Details', [ '__vendorTitle__' => $vendorInfo['title'] ?? getVendorSettings('title') ]), 'description' => '', ]) @else @include('users.partials.header', [ 'title' => __tr('Hi __userFullName__,', [ '__userFullName__' => getUserAuthInfo('profile.first_name') ]), 'description' => '', ]) @endif @php $isExtendedLicence = (getAppSettings('product_registration', 'licence') === 'dee257a8c3a2656b7d7fbe9a91dd8c7c41d90dc9'); $UserVendorInfo = getUserAuthInfo(); @endphp
@if(hasCentralAccess()) @endif @if(hasVendorAccess() || $vendorViewBySuperAdmin) @php $planDetails = vendorPlanDetails(null, null, $vendorInfo['id']); @endphp
Vendor Name

{{ $vendorInfo['title'] ?? '-' }}

Email

{{ $UserVendorInfo['profile']['email'] ?? '-' }}

Phone

{{ $UserVendorInfo['profile']['mobile_number'] ?? '-' }}

Status
{{-- dynamic status example: adjust the key to your real field --}} @php $isActive = data_get($UserVendorInfo, 'status') === 1 || data_get($UserVendorInfo, 'status_text') === 1; @endphp @if($isActive) Active @else Inactive @endif
Created At

@if(!empty($UserVendorInfo['vendor_created_at'])) {{ \Carbon\Carbon::parse($UserVendorInfo['vendor_created_at'])->format('d M Y') }} @else - @endif

{{ __tr('Current Subscribed Plan') }}
@if ($planDetails->hasActivePlan())

{{ $planDetails->planTitle() }}

@php $planStructure = $planDetails->plan_id ? getPaidPlans($planDetails->plan_id) : getFreePlan(); $planCharges = $planStructure['charges'][$planDetails->frequency] ?? null; @endphp
    @foreach ($planStructure['features'] as $featureKey => $featureValue)
  • {{ $featureValue['description'] }} @if (isset($featureValue['limit']) && $featureValue['limit'] >= 0) - {{ $featureValue['limit'] }} {{ $featureValue['limit_duration_title'] ?? '' }} @elseif (isset($featureValue['limit']) && $featureValue['limit'] < 0) - {{ __tr('Unlimited') }} @endif
  • @endforeach
@if($planCharges)
{{ $planCharges['title'] ?? '' }} {{ formatAmount($planCharges['charge'], true) }}
@endif @else
{{ __tr('Vendor does not have any active plan.') }}
@endif
@if ($isExtendedLicence)
{{ __tr('It will cancel all the existing active subscriptions and create a new subscription') }}
@foreach (getPaidPlans() as $paidPlanKey => $paidPlan) @foreach ($paidPlan['charges'] as $planChargeKey => $planCharge) @endforeach @endforeach
@else
{{ __tr('Extended licence required to enable manage subscription') }}
@endif
{{ __tr('Manual/Prepaid Subscription Log') }}
@endif
@push('appScripts') @viteReactRefresh @vite('resources/js/datatable.jsx') @endpush @endsection