@extends('admin.layout') @includeIf('admin.partials.rtl_style') @section('content') @php $vendor_id = App\Models\Listing\Listing::where('id', $listing_id)->pluck('vendor_id')->first(); if ($vendor_id != 0) { $current_package = App\Http\Helpers\VendorPermissionHelper::packagePermission($vendor_id); $dowgraded = App\Http\Helpers\VendorPermissionHelper::packagesDowngraded($vendor_id); $listingCanAdd = packageTotalListing($vendor_id) - vendorTotalListing($vendor_id); } @endphp
{{ __('Products') }}
@includeIf('admin.partials.languages')
@if ($title) {{ __('Preview') }} @endif {{ __('Back') }} @if ($vendor_id != 0) @endif {{ __('Add Product') }}
@if (count($listing_products) == 0)

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

@else
@foreach ($listing_products as $product) @endforeach
{{ __('Title') }} {{ __('Status') }} {{ __('Actions') }}
@php $listing_product_content = App\Models\Listing\ListingProductContent::where( 'listing_product_id', $product->id, ) ->where('language_id', $language->id) ->first(); @endphp @if (!empty($listing_product_content)) {{ strlen(@$listing_product_content->title) > 50 ? mb_substr(@$listing_product_content->title, 0, 50, 'utf-8') . '...' : @$listing_product_content->title }} @else -- @endif
@csrf
@endif
@includeIf('admin.listing.check-limit') @endsection