@extends('vendors.layout') @section('content') @php $vendorId = Auth::guard('vendor')->user()->id; if ($vendorId) { $current_package = App\Http\Helpers\VendorPermissionHelper::packagePermission($vendorId); if (!empty($current_package) && !empty($current_package->features)) { $permissions = json_decode($current_package->features, true); } else { $permissions = null; } } else { $permissions = null; } @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
    @foreach ($listing->galleries as $item) @endforeach
    Ad Image
    @csrf

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

    @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
    @php $approve = App\Models\BasicSettings\Basic::select('admin_approve_status')->first(); $status = $approve->admin_approve_status; @endphp

    {{ __('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
    @endsection @section('script') @endsection @section('variables') @endsection