@extends('layouts.main_investor') @section('content') @lang('site.home') @lang('site.aqars') @lang('site.If you have a problem adding your ad, please call us') 0707078888 {{-- {{ dd($aqar) }} --}} @if (empty($aqar)) @else @endif {{-- --}} {{ csrf_field() }} @if (!empty($aqar)) @method('put') @endif @if (empty($aqar)) @lang('site.add') @else @lang('site.edit') @lang('site.ad_number') ({{ $aqar->id ?? '' }}) @endif @include('partials._errors') @lang('site.country') ( @lang('site.mandatory') ) @lang('site.select') @foreach ($countries as $country) id || (!empty($aqar) && $aqar->country_id == $country->id)) selected @endif> {{ $country->name_ar ?? '' }} @endforeach @lang('site.city') ( @lang('site.mandatory') ) @lang('site.select') @if ($errors->has('city_id')) {{ $errors->first('city_id') }} @endif @lang('site.categories') ( @lang('site.mandatory') ) @foreach ($categories as $cat) category_id != null && $aqar->category_id == $cat->id) checked @endif /> {{ $cat->name_ar ?? '' }} @endforeach @if ($errors->has('category_id')) {{ $errors->first('category_id') }} @endif @lang('site.areas') ( @lang('site.optional') ) @lang('site.name_ar') ( @lang('site.mandatory') ) @lang('site.name_en') ( @lang('site.optional') ) @lang('site.time_from') ( @lang('site.mandatory') ) @lang('site.time_to') ( @lang('site.mandatory') ) @lang('site.choose_price') fixed_price != null) checked @endif /> @lang('site.fixed_price') fixed_price)) checked @endif /> @lang('site.changed_price') @lang('site.fixed_price') ( @lang('site.mandatory') ) @if (empty($aqar)) @lang('site.personnumber') @lang('site.fixed_price') @else @if ($aqar->changed_price != null) @for ($x = 0; $x <= count($aqar->changed_price->price) - 1; $x++) @lang('site.personnumber') @lang('site.fixed_price') @if ($x == 0) @endif @if ($x != 0) @endif @endfor @else @lang('site.personnumber') @lang('site.fixed_price') @endif @endif @lang('site.latitude') ( @lang('site.mandatory') ) @lang('site.longitude') ( @lang('site.mandatory') ) @lang('site.choose_ads_main_image') @lang('site.display_photo') ( @lang('site.mandatory') ) ( @lang('site.pictures_containing_logo_or_phone_number_will_not_be_accepted') ) @lang('site.browse for upload image') @lang('site.images') @lang('site.image at least two') ( @lang('site.mandatory') ) ( @lang('site.pictures_containing_logo_or_phone_number_will_not_be_accepted') ) @lang('site.browse for upload image') @if (!empty($aqar)) @foreach (explode(',', $aqar->images) as $img) x @endforeach @endif @lang('site.choose_the_appropriate_video') @lang('site.videos') ( @lang('site.optional') ) ( @lang('site.videos_containing_logo_or_phone_number_will_not_be_accepted') ) (@lang('site.You must upload a video with MP4 extension')) @lang('site.browse for upload video') @if (!empty($aqar)) Your browser does not support the video tag. @endif @if ($errors->has('videos')) {{ $errors->first('videos') }} @endif @lang('site.descrption') ( @lang('site.mandatory') ) ( @lang('site.phone_number_is_not_accepted') ) {{ old('description', empty($aqar) ? null : $aqar['description']) }} @lang('site.policy_place') ( @lang('site.mandatory') ) ( @lang('site.phone_number_is_not_accepted') ) {{ old('policy_place', empty($aqar) ? null : $aqar['policy_place']) }} @if ($errors->has('policy_place')) {{ $errors->first('policy_place') }} @endif @if (empty($aqar)) @lang('site.add') @else @lang('site.edit') @endif @endsection @section('scripts') @endsection