@extends('admin.layout') @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); if ($current_package != '[]') { $numberoffImages = $current_package->number_of_images_per_products; } else { $numberoffImages = 0; } if ($current_package != '[]') { if (TotalProductPerListing($listing_id) >= $current_package->number_of_products) { $can_product_add = 2; } else { $can_product_add = 1; } } else { $can_product_add = 0; } } else { $numberoffImages = 99999999; $can_product_add = 1; } @endphp
{{ __('Add Product') }}
{{ __('Back') }} @php $dContent = App\Models\Listing\ListingContent::where('listing_id', $listing_id) ->where('language_id', $defaultLang->id) ->first(); $slug = !empty($dContent) ? $dContent->slug : ''; @endphp @if ($dContent) {{ __('Preview') }} @endif @if ($vendor_id != 0) @endif
    @csrf

    @if ($vendor_id != 0) @if ($current_package != '[]')

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

    @endif @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 $currLang = $language; @endphp @foreach ($languages as $language) @continue($language->id == $currLang->id)
    @endforeach
    @endforeach
    @includeIf('admin.listing.check-limit') @endsection @section('script') @endsection