@extends('admin.layout') @section('content') @php $vendor_id = $listing->vendor_id; if ($listing->vendor_id == 0) { $permissions = [ 'Listing Enquiry Form', 'Video', 'Amenities', 'Feature', 'Social Links', 'FAQ', 'Business Hours', 'Products', 'Product Enquiry Form', 'Messenger', 'WhatsApp', 'Telegram', 'Tawk.To', ]; $numberoffImages = 99999999; } else { $vendorId = $listing->vendor_id; if ($vendorId) { $current_package = App\Http\Helpers\VendorPermissionHelper::packagePermission($vendorId); $dowgraded = App\Http\Helpers\VendorPermissionHelper::packagesDowngraded($vendor_id); $listingCanAdd = packageTotalListing($vendor_id) - vendorTotalListing($vendor_id); if (!empty($current_package) && !empty($current_package->features)) { $permissions = json_decode($current_package->features, true); } else { $permissions = null; } if ($current_package != '[]') { $numberoffImages = $current_package->number_of_images_per_listing; } else { $numberoffImages = 0; } } else { $permissions = null; $numberoffImages = 0; } } @endphp
{{ __('Edit Listing') }}
{{ __('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
    @foreach ($listing->galleries as $item) @endforeach
    Ad Image
    @csrf

    @csrf

    ...
    {{ __('Choose Image') }}

    {{ __('Image Size 600x400') }}

    @if (is_array($permissions) && in_array('Video', $permissions))

    @if ($listing->video_background_image) @endif @php $display = 'none'; @endphp ...
    {{ __('Choose Image') }}
    @endif
    @if (is_array($permissions) && in_array('Video', $permissions))
    @endif

    {{ __('The Latitude must be between -90 and 90. Ex:49.43453') }}

    {{ __('The Longitude must be between -180 and 180. Ex:149.91553') }}

    @foreach ($languages as $language) @php $listingContent = App\Models\Listing\ListingContent::where('listing_id', $listing->id) ->where('language_id', $language->id) ->first(); @endphp
    @php $categories = App\Models\ListingCategory::where('language_id', $language->id) ->where('status', 1) ->get(); @endphp
    @php $Countries = App\Models\Location\Country::where('language_id', $language->id)->get(); $totalCountry = $Countries->count(); @endphp @if ($totalCountry > 0)
    @endif @php $States = App\Models\Location\State::where('language_id', $language->id)->get(); $totalState = $States->count(); $Stateshave = App\Models\Location\State::where([ ['language_id', $language->id], ['country_id', $listingContent ? $listingContent->country_id : 0], ])->get(); $totalStateshave = $Stateshave->count(); @endphp @if ($totalState > 0)
    @endif @php $cities = App\Models\Location\City::where('language_id', $language->id)->get(); $totalCity = $cities->count(); @endphp
    @if (is_array($permissions) && in_array('Amenities', $permissions))
    @php $aminities = App\Models\Aminite::where('language_id', $language->id)->get(); $hasaminitie = $listingContent ? json_decode($listingContent->aminities) : []; @endphp
    @endif
    @php $currLang = $language; @endphp @foreach ($languages as $language) @continue($language->id == $currLang->id)
    @endforeach
    @endforeach
    @includeIf('admin.listing.check-limit') @endsection @section('script') @endsection