@extends('admin.layout') @section('content')
{{ __('Vendor Information') }}

@if ($vendor->photo != null) ... @else ... @endif

@php $currPackage = \App\Http\Helpers\VendorPermissionHelper::currPackageOrPending($vendor->id); $currMemb = \App\Http\Helpers\VendorPermissionHelper::currMembOrPending($vendor->id); @endphp
{{ __('Current Package:') }}
@if ($currPackage) {{ $currPackage->title }} {{ $currPackage->term }}
@csrf

@if ($currMemb->is_trial == 1) ({{ __('Expire Date') . ':' }} {{ Carbon\Carbon::parse($currMemb->expire_date)->format('M-d-Y') }}) {{ __('Trial') }} @else ({{ __('Expire Date') . ':' }} {{ $currPackage->term === 'lifetime' ? 'Lifetime' : Carbon\Carbon::parse($currMemb->expire_date)->format('M-d-Y') }}) @endif @if ($currMemb->status == 0)

@csrf
@endif

@else {{ __('Add Package') }} @endif
@php $nextPackage = \App\Http\Helpers\VendorPermissionHelper::nextPackage($vendor->id); $nextMemb = \App\Http\Helpers\VendorPermissionHelper::nextMembership($vendor->id); @endphp
{{ __('Next Package:') }}
@if ($nextPackage) {{ $nextPackage->title }} {{ $nextPackage->term }}
@csrf

@if ($currPackage->term != 'lifetime' && $nextMemb->is_trial != 1) ( {{ __('Activation Date') }}: {{ Carbon\Carbon::parse($nextMemb->start_date)->format('M-d-Y') }}, {{ __('Expire Date') }}: {{ $nextPackage->term === 'lifetime' ? 'Lifetime' : Carbon\Carbon::parse($nextMemb->expire_date)->format('M-d-Y') }}) @endif @if ($nextMemb->status == 0)

@csrf
@endif

@else @if (!empty($currPackage)) {{ __('Add Package') }} @else - @endif @endif
{{ __('Name') . ' :' }}
{{ @$vendor->vendor_info->name }}
{{ __('Username') . ' :' }}
{{ $vendor->username }}
{{ __('Email') . ' :' }}
{{ $vendor->email }}
{{ __('Phone') . ' :' }}
{{ $vendor->phone }}
{{ __('Country') . ' :' }}
{{ @$vendor->vendor_info->country }}
{{ __('City') . ' :' }}
{{ @$vendor->vendor_info->city }}
{{ __('State') . ' :' }}
{{ @$vendor->vendor_info->state }}
{{ __('Zip Code') . ' :' }}
{{ @$vendor->vendor_info->zip_code }}
{{ __('Address') . ' :' }}
{{ @$vendor->vendor_info->address }}
{{ __('Details') . ' :' }}
{{ @$vendor->vendor_info->details }}
{{ __('All Listings') }}
@includeIf('admin.partials.languages')
@if (count($listings) == 0)

{{ __('NO LISTING FOUND') . '!' }}

@else
@foreach ($listings as $listing) @if (count($charges) > 0) @endif @include('admin.listing.feature-payment') @endforeach
{{ __('Title') }} {{ __('Featured') }} {{ __('Status') }} {{ __('Actions') }}
{{ strlen(optional($listing->listing_content->first())->title) > 40 ? mb_substr(optional($listing->listing_content->first())->title, 0, 40, 'utf-8') . '...' : optional($listing->listing_content->first())->title }} @php $order_status = App\Models\FeatureOrder::where('listing_id', $listing->id)->first(); $today_date = now()->format('Y-m-d'); @endphp @if (is_null($order_status)) @endif @if ($order_status) @if ($order_status->order_status == 'pending')

{{ ucfirst('pending') }}

@endif @if ($order_status->order_status == 'completed') @if ($order_status->end_date < $today_date) @else

{{ ucfirst('Active') }}

@endif @endif @if ($order_status->order_status == 'rejected') @endif @endif
@csrf
@csrf
@endif
@includeIf('admin.end-user.vendor.edit-current-package') @includeIf('admin.end-user.vendor.add-current-package') @includeIf('admin.end-user.vendor.edit-next-package') @includeIf('admin.end-user.vendor.add-next-package') @endsection