@extends('layouts.main_investor') @section('content') @lang('site.home') @lang('site.cars') @lang('site.If you have a problem adding your ad, please call us') 0707078888 @if (empty($car)) @else @endif {{-- --}} {{ csrf_field() }} @if (!empty($car)) @method('put') @endif @if (empty($car)) @lang('site.add') @else @lang('site.edit') @lang('site.Ads No') ({{ $car->id ?? '' }}) @endif @include('partials._errors') @lang('site.country') ( @lang('site.mandatory') ) @lang('site.select') @foreach ($countries as $country) id || (!empty($car) && $car->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') }} return View(); @endif @lang('site.categories') ( @lang('site.mandatory') ) @lang('site.select') @foreach ($categories as $cat) id || (!empty($car) && $car->category_id == $cat->id)) selected @endif> {{ $cat->name_ar ?? '' }} @endforeach @if ($errors->has('category_id')) {{ $errors->first('category_id') }} @endif @lang('site.subcategories') ( @lang('site.mandatory') ) @lang('site.select') @if ($errors->has('sub_category_id')) {{ $errors->first('sub_category_id') }} @endif @lang('site.name_ar') ( @lang('site.mandatory') ) @lang('site.name_en') ( @lang('site.optional') ) @lang('site.year') ( @lang('site.mandatory') ) {{-- {{dd($car)}} --}} @if (!empty($car)) @for ($year = (int) date('Y') + 1; 1900 <= $year; $year--) : @if ($car->year == $year) {{ $year }} @else {{ $year }} @endif @endfor @else @for ($year = (int) date('Y') + 1; 1900 <= $year; $year--) : {{ $year }} @endfor @endif @lang('site.color') ( @lang('site.mandatory') ) @if (empty($car)) {{-- {{dd("dd")}} --}} {{-- --}} {{-- --}} Select a color: {{-- Submit --}} @else @endif @lang('site.car_numbers') ( @lang('site.mandatory') ) @lang('site.car_delivery_date') ( @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($car)) @lang('site.daynumber') @lang('site.fixed_price') @else @for ($x = 0; $x <= count($car->changed_price->price) - 1; $x++) @lang('site.daynumber') @lang('site.fixed_price') @if ($x == 0) @endif @if ($x != 0) @endif @endfor @endif اختر الصورة الرئيسية للاعلان @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($car)) @foreach (explode(',', $car->images) as $img) x @endforeach @endif ( @lang('site.choose_the_appropriate_video') ) @lang('site.video') ( @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') Your browser does not support the video tag. @if ($errors->has('videos')) {{ $errors->first('videos') }} @endif @lang('site.descrption') ( @lang('site.mandatory') ) ( @lang('site.phone_number_is_not_accepted') ) {{ old('description_ar', empty($car) ? null : $car['description_ar']) }} @lang('site.policy_place') ( @lang('site.mandatory') ) {{ old('policy_place', empty($car) ? null : $car['policy_place']) }} {{-- @lang('site.dd;lkm;lm;l') --}} ( @lang('site.phone_number_is_not_accepted') ) @if (empty($car)) @lang('site.add') @else @lang('site.edit') @endif {{-- type="button" onclick="confirmAction('stop',{{$aqar->id}},'@lang('site.stop ads')','error')" --}} @endsection @section('scripts') @endsection