@extends('vendors.layout') {{-- this style will be applied when the direction of language is right-to-left --}} @includeIf('admin.partials.rtl_style') @section('content') @php $vendor_id = Auth::guard('vendor')->user()->id; if ($vendor_id) { $current_package = App\Http\Helpers\VendorPermissionHelper::packagePermission($vendor_id); if (!empty($current_package) && !empty($current_package->features)) { $permissions = json_decode($current_package->features, true); } else { $permissions = null; } } else { $permissions = null; } @endphp
{{ __('Listings') }}
@includeIf('admin.partials.languages')
{{ __('Add Listing') }}
@if (count($listings) == 0)

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

@else
@if (count($charges) > 0) @endif @foreach ($listings as $listing) @php $listing_content = $listing->listing_content->first(); if (is_null($listing_content)) { $listing_content = App\Models\Listing\ListingContent::where('listing_id', $listing->id) ->where('language_id', $language->id) ->first(); } @endphp @if (count($charges) > 0) @endif @include('vendors.listing.feature-payment') @endforeach @if (count($listings) < 3) @endif
{{ __('Featured Image') }} {{ __('Title') }}{{ __('Featured Status') }}{{ __('Category') }} {{ __('Approve Status') }} {{ __('Hide/Show') }} {{ __('Actions') }}
@if (!empty($listing_content))
...
@else
...
@endif
@if (!empty($listing_content)) {{ strlen(@$listing_content->title) > 50 ? mb_substr(@$listing_content->title, 0, 50, 'utf-8') . '...' : @$listing_content->title }} @else -- @endif @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
@if (!empty($listing_content)) @php $categoryName = App\Models\ListingCategory::where( 'id', $listing_content->category_id, )->first(); @endphp {{ @$categoryName->name }} @else -- @endif @if ($listing->status == 1)

{{ __('Approved') }}

@elseif($listing->status == 2)

{{ __('Rejected') }}

@else

{{ __('Pending') }}

@endif
@csrf
@if ($current_package == '[]')
@csrf
@else @endif
@endif
@endsection @section('script') @endsection