@extends('vendors.layout') @section('content') @php $vendor_id = Auth::guard('vendor')->user()->id; if ($vendor_id) { $current_package = App\Http\Helpers\VendorPermissionHelper::packagePermission($vendor_id); if ($current_package != '[]') { $numberoffImages = $current_package->number_of_images_per_products; } else { $numberoffImages = 0; } } @endphp
@if ($current_package != '[]') @if (TotalProductPerListing($listing_id) >= $current_package->number_of_products) @php $can_product_add = 2; @endphp @else @php $can_product_add = 1; @endphp @endif @else @php $can_product_add = 0; @endphp @endif
{{ __('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
    @csrf

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

    {{ __('You can upload maximum ' . $current_package->number_of_images_per_products . ' 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
    @endsection @section('script') @endsection