@extends('layouts.admin') @section('css') @parent {!! Html::style('adminbsb_plugins/bootstrap-select/css/bootstrap-select.min.css') !!} {!! Html::style('css/jquery-ui.1.12.1.min.css') !!} {!! Html::style('css/jquery-ui.theme.min.css') !!} {!! Html::style("js/plupload/jquery.plupload.queue/css/jquery.plupload.queue.css") !!} {!! Html::style('css/adminbsb/materialize.min.css') !!} @stop @section('content')

directions_car Web auto

{!! Form::model($annonce, array("class" => "form-horizontal")) !!} @if($annonce) {!! Form::hidden('actif', old('actif')) !!} {!! Form::hidden('mea', old('mea')) !!} {!! Form::hidden('vip', old('vip')) !!} {!! Form::hidden('vendu', old('vendu')) !!} {!! Form::hidden('reserve', old('reserve')) !!} {!! Form::hidden('arrivage', old('arrivage')) !!} {!! Form::hidden('boite_auto', old('boite_auto')) !!}

{{ $annonce->marque }} {{ $annonce->modele }} @if($annonce->designiation != null){{ $annonce->designiation }}@endif - {{ $annonce->prix }} €

@if($annonce->annee != null){{ $annonce->annee }}@endif

@if(count($photos) != 0) {!! Html::image("plugins/webauto/img/{$annonce->id}/medium/" . $photos[0], "", array("class" => "img-responsive"))!!} @endif
@if($annonce->actif == 0) @else @endif
@if($annonce->mea == 0) @else @endif
@if($annonce->vip == 0) @else @endif
@if($annonce->vendu == 0) @else @endif
@if($annonce->reserve == 0) @else @endif
@if($annonce->arrivage == 0) @else @endif
@if($annonce->date_dispo){{ $annonce->date_dispo }} @else {{ $annonce->dispo }} @endif
{{ $annonce->kilometrage }} km
{{ $annonce->energie }}
{{ $annonce->vitesse }}
{{ $annonce->puissance }} ch
{{ $annonce->porte }}
{!! $annonce->texte !!}
@endif
@if($annonce) {!! Form::submit("Enregistrer et rester sur la page", array("class" => "btn btn-sm bg-teal waves-effect m-l-15 pull-right", "name" => "saveAndkeep")) !!} @endif {!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Webauto\Controller\WebautoController@admin') . "'", "class" => "btn btn-sm bg-orange waves-effect pull-right")) !!}

Détail de l'annonce automobile

Éditer l'annonce

{!! Form::text('reference', old('reference'), array("class" => "form-control", "placeholder" => "Référence de l'annonce", "required")) !!}
{!! Form::checkbox('actif', 1, old('actif'), array("id" => 'actif', "class" => "filled-in chk-col-teal")) !!}
{!! Form::checkbox('mea', 1, old('mea'), array("id" => 'mea', "class" => "filled-in chk-col-teal")) !!}
{!! Form::text('rang', old('rang'), array("class" => "form-control", "placeholder" => "Ordre d'affichage")) !!}

Description du véhicule

{!! Form::select('marque', $marques, old('marque'), array("class" => "form-control show-tick", "data-live-search" => "true")) !!}
{!! Form::text('modele', old('modele'), array("class" => "form-control", "placeholder" => "Modèle")) !!}
{!! Form::text('designiation', old('designiation'), array("class" => "form-control", "placeholder" => "Désignation, finition")) !!}
{!! Form::select('carrosserie', $carrosseries, old('carrosserie'), array("class" => "form-control show-tick")) !!}
{!! Form::select('annee', $annees, old('annee'), array("class" => "form-control show-tick", "data-live-search" => "true")) !!}
{!! Form::text('circulation', old('circulation'), array("class" => "form-control datepicker", "placeholder" => "Mise en circulation")) !!}
Date affichée au format anglo-saxon
{!! Form::select('etat', $etats, old('etat'), array("class" => "form-control show-tick")) !!}
{!! Form::text('prix', old('prix'), array("class" => "form-control", "placeholder" => "Prix de vente", "required")) !!}

Caractéristiques techniques du véhicule

{!! Form::select('energie', $energies, old('energie'), array("class" => "form-control show-tick")) !!}
{!! Form::select('vitesse', $vitesses, old('vitesse'), array("class" => "form-control show-tick")) !!}
{!! Form::text('kilometrage', old('kilometrage'), array("class" => "form-control", "placeholder" => "Kilométrage", "required")) !!}
{!! Form::text('puissance', old('puissance'), array("class" => "form-control", "placeholder" => "Puissance DIN")) !!}
{!! Form::text('puissancefisc', old('puissancefisc'), array("class" => "form-control", "placeholder" => "Puissance fiscale")) !!}
{!! Form::text('emission', old('emission'), array("class" => "form-control", "placeholder" => "Émission en CO²")) !!}
{!! Form::text('consommation', old('consommation'), array("class" => "form-control", "placeholder" => "Consommation mixte")) !!}

Autres détails du véhicule

{!! Form::select('couleur', $couleurs, old('couleur'), array("class" => "form-control show-tick", "data-live-search" => "true")) !!}
{!! Form::text('teinte', old('teinte'), array("class" => "form-control", "placeholder" => "ex: clair, nacré, rubis... / Ne précisez pas la couleur précédement sélectionnée")) !!}
{!! Form::select('porte', $portes, old('porte'), array("class" => "form-control show-tick")) !!}
{!! Form::select('place', $places, old('place'), array("class" => "form-control show-tick")) !!}

Disponibilité du véhicule et garantie

@foreach($dispo as $key => $element) {!! Form::radio('dispo', $key, $annonce ? $annonce->dispo : $key == "Non précisé", array("id" => $key, "class" => "with-gap")) !!} @endforeach
{!! Form::text('date_dispo', $annonce ? $annonce->date_dispo : "", array("class" => "form-control datepicker", "placeholder" => "Précisez la date")) !!}
Date affichée au format anglo-saxon
{!! Form::select('garantie', $garanties, old('garantie'), array("class" => "form-control show-tick")) !!}
{!! Form::text('duree', old('duree'), array("class" => "form-control", "placeholder" => "Durée de la garantie")) !!}

Équipements et options du véhicule

Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 552
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 554
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 556
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 558
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 562
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 564
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 566
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 568
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 572
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 574
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 576
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 578
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 582
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 584
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 586
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 588
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 592
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 594
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 596
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 598
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 602
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 604
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 606
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 608
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 612
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 614
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 616
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 618
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 622
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 624
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 626
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 628
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 632
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 634
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 636
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 638
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 642
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 644
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 646
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 648
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 652
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 654
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 656
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 658
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 662
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 664
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 666
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 668
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 672
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 674
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 676
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 678
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 682
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 684
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 686
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 688
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 692
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 694
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 696
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 698
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 702
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 704
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 706
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 708
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 712
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 714
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 716
>
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 718
>
 
Warning: in_array() expects parameter 2 to be array, null given in /home/trutinauto/public_html/resources/views/plugins/web_auto/edit_auto.blade.php on line 723
>
{!! Form::text('autre', old('autre'), array("class" => "form-control", "placeholder" => "Autre")) !!}
@if(count(getAllLangues()) > 1) @endif

Texte de l'annonce

{!! Form::textarea('texte', old('texte'), array("style" => "width: 100%", "class" => "editor")) !!}
{!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Webauto\Controller\WebautoController@admin') . "'", "class" => "btn btn-sm bg-orange m-t-15 waves-effect")) !!} @if($annonce) {!! Form::submit("Enregistrer et rester sur la page", array("class" => "btn btn-sm bg-teal waves-effect m-l-15 m-t-15 pull-right", "name" => "saveAndkeep")) !!} @endif
@if(count(getAllLangues()) > 1) @foreach (getAllLangues() as $langue) @if($langue->suffixe != "fre")

Texte de l'annonce

{!! Form::textarea($langue->suffixe . '_texte', getTranslation("AutoAnnonce", "texte", $annonce ? $annonce->id : null, $annonce ? $annonce->texte : null, $langue->suffixe), array("style" => "width: 100%", "class" => "editor")) !!}
{!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Webauto\Controller\WebautoController@admin') . "'", "class" => "btn btn-sm bg-orange m-t-15 waves-effect")) !!} @if($annonce) {!! Form::submit("Enregistrer et rester sur la page", array("class" => "btn btn-sm bg-teal waves-effect m-l-15 m-t-15 pull-right", "name" => "saveAndkeep")) !!} @endif
@endif @endforeach @endif
@if($annonce) {!! Form::submit("Enregistrer et rester sur la page", array("class" => "btn btn-sm bg-teal waves-effect m-l-15 pull-right", "name" => "saveAndkeep")) !!} @endif {!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Webauto\Controller\WebautoController@admin') . "'", "class" => "btn btn-sm bg-orange waves-effect pull-right")) !!}

Contact de l'annonce automobile

{!! Form::text('nom', $annonce ? $annonce->nom : getParametre('nom_webauto'), array("class" => "form-control", "placeholder" => "Nom")) !!}
{!! Form::text('adresse', $annonce ? $annonce->adresse : getParametre('adresse_webauto'), array("class" => "form-control", "placeholder" => "Adresse")) !!}
{!! Form::text('cp', $annonce ? $annonce->cp : getParametre('cp_webauto'), array("class" => "form-control", "placeholder" => "Code postal")) !!}
{!! Form::text('ville', $annonce ? $annonce->ville : getParametre('ville_webauto'), array("class" => "form-control", "placeholder" => "Ville")) !!}
{!! Form::text('telephone', $annonce ? $annonce->telephone : getParametre('tel_webauto'), array("class" => "form-control", "placeholder" => "Téléphone")) !!}
{!! Form::text('mobile', $annonce ? $annonce->mobile : getParametre('mobile_webauto'), array("class" => "form-control", "placeholder" => "Téléphone mobile")) !!}
{!! Form::text('fax', $annonce ? $annonce->fax : getParametre('fax_webauto'), array("class" => "form-control", "placeholder" => "Fax")) !!}
{!! Form::text('email', $annonce ? $annonce->email : getParametre('email_webauto'), array("class" => "form-control", "placeholder" => "Courriel")) !!}
{!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Webauto\Controller\WebautoController@admin') . "'", "class" => "btn btn-sm bg-orange waves-effect m-t-15")) !!}
{!! Form::hidden('id') !!} {!! Form::close() !!} @if($annonce)

Visuels de l'annonce automobile

Ajouter ou supprimer des photos à l'annonce Le poids de chaque image ne doit pas dépasser 5 Mo

Votre navigateur ne supporte pas HTML5.

Liste des photos de l'annonce

{!! Form::open(array('url' => action('\Plugins\Webauto\Controller\WebautoController@update_photos', array('id' => $annonce->id)))) !!}
@foreach($photos as $id => $photo) @endforeach
  Visuel Titre Actions
{!! Html::image('plugins/webauto/img/' . $annonce->id . "/icon/" . $photo) !!} {{ $photo }}
{!! Form::submit("Enregistrer l'ordre des photos", array('name' => "save", "class" => "btn btn-sm bg-light-green waves-effect m-l-15 pull-right")) !!} {!! Form::submit("Supprimer la sélection", array("onclick" => "return confirm('Etes-vous sûr de vouloir supprimer la selection ?');", "class" => "btn btn-sm bg-red waves-effect pull-right")) !!}
{!! Form::close() !!}
@endif @stop @section('js') @parent {!! Html::script("adminbsb_plugins/bootstrap-select/js/bootstrap-select.min.js") !!} {!! Html::script("js/jquery-ui.1.12.1.min.js") !!} {!! Html::script("js/jquery.ui.datepicker-fr.js") !!} {!! Html::script("js/plupload/plupload.full.js") !!} {!! Html::script("js/plupload/jquery.plupload.queue/jquery.plupload.queue.js") !!} {!! Html::script("js/tinymce/tinymce.min.js") !!} @stop