@extends('admin.layout') @section('content') @php $vendor_id = App\Models\Listing\Listing::where('id', $product->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); if ($current_package != '[]') { $numberoffImages = $current_package->number_of_images_per_products; } else { $numberoffImages = 0; } } else { $numberoffImages = 99999999; } @endphp
{{ __('Edit Product') }}
{{ __('Back') }} @php $dContent = App\Models\Listing\ListingContent::where('listing_id', $product->listing_id) ->where('language_id', $defaultLang->id) ->first(); $slug = !empty($dContent) ? $dContent->slug : ''; @endphp @if ($dContent) {{ __('Preview') }} @endif @if ($vendor_id != 0) @endif
    @foreach ($product->galleries as $item) @endforeach
    Ad Image
    @csrf

    @if ($vendor_id != 0)

    {{ __('You can upload maximum ' . $current_package->number_of_images_per_products . ' images under one product') }} @else

    {{ __('You can upload unlimited images under one product') }}

    @endif
    @csrf

    ...
    {{ __('Choose Image') }}
    @php $currencyText = $currencyInfo->base_currency_text; @endphp
    @foreach ($languages as $language) @php $listingContent = App\Models\Listing\ListingProductContent::where( 'listing_product_id', $product->id, ) ->where('language_id', $language->id) ->first(); @endphp
    @endforeach
    @includeIf('admin.listing.check-limit') @endsection @section('script') @endsection @section('variables') @endsection