@extends('layouts.main') @section('title') {{ __('Update Project') }} @endsection {{-- --}} @section('page-title')

@yield('title')

@endsection @section('content') {!! Form::open(['route' => ['project.update',$project->id], 'data-parsley-validate', 'id' => 'edit-form', 'files' => true,'data-success-function'=> "formSuccessFunction"]) !!}

{{ __('Details') }}


{{-- Category --}}
{{ Form::label('category', __('Category'), ['class' => 'form-label col-12 ']) }}
{{-- Title --}}
{{ Form::label('title', __('Title'), ['class' => 'form-label col-12 ']) }} {{ Form::text('title', $project->title, [ 'class' => 'form-control ', 'placeholder' => __('Title'), 'required' => 'true', 'id' => 'title', ]) }}
{{-- Slug --}}
{{ Form::label('slug', __('Slug'), ['class' => 'form-label col-12 ']) }} {{ Form::text('slug', $project->slug_id, [ 'class' => 'form-control ', 'placeholder' => __('Slug'), 'id' => 'slug', ]) }} {{ __("Only Small English Characters, Numbers And Hypens Allowed") }}
{{-- Description --}}
{{ Form::label('description', __('Description'), ['class' => 'form-label col-12 ']) }} {{ Form::textarea('description', $project->description, [ 'class' => 'form-control mb-3', 'rows' => '5', 'id' => '', 'required' => 'true', 'placeholder' => __('Description') ]) }}
{{-- Project Type --}}
{{ Form::label('', __('Project Type'), ['class' => 'form-label col-12 ']) }} {{-- Upcoming --}}
{{ Form::radio('project_type', 'upcoming', null, [ 'class' => 'form-check-input edit-project-type', 'id' => 'upcoming', 'required' => true, 'checked' => true ]) }} {{ Form::label('project_type', __('Upcoming'), ['class' => 'form-check-label','for' => 'upcoming']) }}
{{-- Under Construction --}}
{{ Form::radio('project_type', 'under_construction', null, [ 'class' => 'form-check-input edit-project-type', 'id' => 'under_construction', 'required' => true, ]) }} {{ Form::label('project_type', __('Under Construction'), ['class' => 'form-check-label','for' => 'under_construction']) }}

{{ __('SEO Details') }}


{{-- SEO Title --}}
{{ Form::label('title', __('Title'), ['class' => 'form-label text-center']) }}
0
{{-- SEO Image --}}
{{ Form::label('image', __('Image'), ['class' => 'form-label']) }}
@if(!empty($project->getRawOriginal('meta_image')))
Image
@endif
{{-- SEO Description --}}
{{ Form::label('description', __('Description'), ['class' => 'form-label text-center']) }}
0
{{-- SEO Keywords --}}
{{ Form::label('keywords', __('Keywords'), ['class' => 'form-label']) }} (add comma separated keywords)
{{-- Location --}}

{{ __('Location') }}


{{ Form::label('city', __('City'), ['class' => 'form-label col-12 ']) }} {!! Form::hidden('city', $project->city, ['class' => 'form-control ', 'id' => 'city']) !!}
{{ Form::label('country', __('Country'), ['class' => 'form-label col-12 ']) }} {{ Form::text('country', !empty($project->country) ? $project->country : "", ['class' => 'form-control ', 'placeholder' => 'Country', 'id' => 'country', 'required' => true]) }}
{{ Form::label('state', __('State'), ['class' => 'form-label col-12 ']) }} {{ Form::text('state', !empty($project->state) ? $project->state : "", ['class' => 'form-control ', 'placeholder' => 'State', 'id' => 'state', 'required' => true]) }}
{{ Form::label('latitude', __('Latitude'), ['class' => 'form-label col-12 ']) }} {!! Form::text('latitude', !empty($project->latitude) ? $project->latitude : "", ['class' => 'form-control', 'id' => 'latitude', 'step' => 'any', 'readonly' => true, 'required' => true, 'placeholder' => trans('Latitude')]) !!}
{{ Form::label('longitude', __('Longitude'), ['class' => 'form-label col-12 ']) }} {!! Form::text('longitude', !empty($project->longitude) ? $project->longitude : "", ['class' => 'form-control', 'id' => 'longitude', 'step' => 'any', 'readonly' => true, 'required' => true, 'placeholder' => trans('Longitude')]) !!}
{{ Form::label('address', __('Address'), ['class' => 'form-label col-12 ']) }} {{ Form::textarea('address', $project->location, [ 'class' => 'form-control ', 'placeholder' => 'Address', 'rows' => '4', 'id' => 'address', 'autocomplete' => 'off', 'required' => 'true', ]) }}
{{-- Floor Plans --}}

{{ __('Floor Plans') }}


{{-- Floor Section --}}
{!! Form::hidden('id', "",['class' => "floor-id"]) !!} {{-- Floor Title --}}
{{-- Floor Image --}}
{{-- Add New Floor Button --}}
{{-- Images, Videos and Documents --}}

{{ __('Images, Videos and Documents') }}


{{-- Title Image --}}
{{ Form::label('title-image', __('Title Image'), ['class' => 'form-label']) }} @if(!empty($project->getRawOriginal('image')))
Image
@endif
{{-- Gallery Images --}}
{{ Form::label('gallary-images', __('Gallery Images'), ['class' => 'form-label']) }} @if (!empty($project->gallary_images)) @foreach ($project->gallary_images as $row)
Image
@endforeach @endif
{{-- Documents --}}
{{ Form::label('documents', __('Documents'), ['class' => 'form-label ']) }} @if (!empty($project->documents)) @foreach ($project->documents as $row) @endforeach @endif
{{-- Video Link --}}
{{ Form::label('video_link', __('Video Link'), ['class' => 'form-label']) }} {{ Form::text('video_link', isset($project->video_link) ? $project->video_link : '', [ 'class' => 'form-control ', 'placeholder' => 'Video Link', 'id' => 'address', 'autocomplete' => 'off', ]) }}
{{-- Save --}}
  
{!! Form::close() !!} @endsection @section('script') @endsection