@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") !!} @stop @section('content')

folder Catalogue

{!! Form::model($produit, array("files" => true, "class" => "form-horizontal", "onsubmit" => "return checkCategorie()")) !!}
@if(count(getAllLangues()) > 1) @endif
@if($produit != null) {!! 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\Catalogue\Controller\CatalogueController@admin') . "'", "class" => "btn btn-sm bg-orange waves-effect pull-right")) !!}

Détail d'un produit

Éditer un produit

{!! Form::text('libelle', old('libelle'), array("class" => "form-control", "placeholder" => "Titre du produit", "required")) !!}
{!! Form::text('reference', old('reference'), array("class" => "form-control", "placeholder" => "Référence", "required")) !!}
{!! Form::select('categorie_id', $categorieslist, old('categorie_id'), array("class" => "form-control show-tick")) !!}
@foreach($categories as $categorie) {!! Form::checkbox('categories[]', $categorie->id, $produit ? isCategorie($categorie->id, $produit->categories) : false, array("id" => "categorie-" . $categorie->id, "class" => "filled-in chk-col-teal")) !!} @endforeach
{!! 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")) !!}

Description du produit

{!! Form::textarea('description', old('description'), array("style" => "width: 100%", "class" => "editor")) !!}
{!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Catalogue\Controller\CatalogueController@admin') . "'", "class" => "btn btn-sm bg-orange m-t-15 waves-effect")) !!} @if($produit != null) {!! 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

Référencement du produit

Cette partie est réservée pour la surcharge des métas créées automatiquement

{!! Form::text('meta_title', old('meta_title'), array("class" => "form-control", "placeholder" => "META Title du produit", "maxlength" => 80, "ID" => "idtitle")) !!}
Nombre de charactère :
{!! Form::text('meta_description', old('meta_description'), array("class" => "form-control", "placeholder" => "META Description du produit", "maxlength" => 170, "ID" => "idmeta")) !!}
Nombre de charactère :
{!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Catalogue\Controller\CatalogueController@admin') . "'", "class" => "btn btn-sm bg-orange waves-effect m-t-15")) !!}
@if(count(getAllLangues()) > 1) @foreach (getAllLangues() as $langue) @if($langue->suffixe != "fre")
@if($produit != null) {!! 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\Catalogue\Controller\CatalogueController@admin') . "'", "class" => "btn btn-sm bg-orange waves-effect pull-right")) !!}

Détail d'un produit

Éditer un produit

{!! Form::text($langue->suffixe . '_libelle', getTranslation("Produit", "libelle", $produit ? $produit->id : null, $produit ? $produit->libelle : null, $langue->suffixe), array("class" => "form-control", "placeholder" => "Titre du produit")) !!}

Description du produit

{!! Form::textarea($langue->suffixe . '_description', getTranslation("Produit", "description", $produit ? $produit->id : null, $produit ? $produit->description : null, $langue->suffixe), array("style" => "width: 100%", "class" => "editor")) !!}
{!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Catalogue\Controller\CatalogueController@admin') . "'", "class" => "btn btn-sm bg-orange m-t-15 waves-effect")) !!} @if($produit != null) {!! 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

Référencement du produit

Cette partie est réservée pour la surcharge des métas créées automatiquement

{!! Form::text($langue->suffixe . '_meta_title', getTranslation("Produit", "meta_title", $produit ? $produit->id : null, $produit ? $produit->meta_title : null, $langue->suffixe), array("class" => "form-control", "placeholder" => "META Title du produit", "maxlength" => 80)) !!}
{!! Form::text($langue->suffixe . '_meta_description', getTranslation("Produit", "meta_description", $produit ? $produit->id : null, $produit ? $produit->meta_description : null, $langue->suffixe), array("class" => "form-control", "placeholder" => "META Description du produit", "maxlength" => 170)) !!}
{!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Catalogue\Controller\CatalogueController@admin') . "'", "class" => "btn btn-sm bg-orange waves-effect m-t-15")) !!}
@endif @endforeach @endif
@if(isModuleActive('Vente en ligne'))
@else
@endif

Caractéristiques du produit

{!! Form::text('marque', old('marque'), array("class" => "form-control", "placeholder" => "Marque")) !!}
{!! Form::text('prix_init', old('prix_init'), array("id" => "prix_init", "onKeyup" => "updatePrix()", "class" => "form-control", "placeholder" => "Prix")) !!}
{!! Form::text('remise', old('remise'), array("id" => "remise", "onKeyup" => "updatePrix()", "class" => "form-control", "placeholder" => "Remise")) !!}
{!! Form::select('pourcent', array(0 => "Aucune remise appliquée", 1 => "Remise en numéraire", 2 => "Remise en pourcentage"), old('pourcent'), array("id" => "pourcent", "onChange" => "updatePrix()", "class" => "form-control show-tick")) !!}
@if(isModuleActive('Vente en ligne'))

E-commerce

{!! Form::text('tva', old('tva'), array("class" => "form-control", "placeholder" => "TVA")) !!}
{!! Form::text('poids', old('poids'), array("class" => "form-control", "placeholder" => "Poids")) !!}
{!! Form::text('stock', old('stock'), array("class" => "form-control", "placeholder" => "Stock")) !!}
{!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Catalogue\Controller\CatalogueController@admin') . "'", "class" => "btn btn-sm bg-orange m-t-15 waves-effect")) !!} @if($produit != null) {!! 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
@if($produit)

Accessoires associés

{!! Form::select('accessoire', $accessoires, null, array("class" => "form-control", "id" => "choose-accessoire")) !!}
@foreach ($produit->accessoires as $accessoire) @endforeach
ID Nom de l'accessoire Supprimer
{{ $accessoire->id }} {{ $accessoire->libelle }}
@endif @if(count($variables) || count($stockables))
@if(count($variables))

Variables additionnelles

@foreach ($variables as $variable) @endforeach
Nom de la variable Valeur
{{ $variable->nom }}
@endif @if (isModuleActive('Vente en ligne') && count($stockables))

Variables additionnelles stockables

@foreach ($stockables as $variable) @endforeach
Nom de la variable Valeur
{{ $variable->nom }}
{!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Catalogue\Controller\CatalogueController@admin') . "'", "class" => "btn btn-sm bg-orange m-t-15 waves-effect")) !!} @if($produit != null) {!! 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
@endif {!! Form::hidden('id') !!} {!! Form::hidden('prix', $produit ? $produit->prix : 0, array('id' => 'prix')) !!} {!! Form::close() !!} @if($produit)

Ajouter des photos au produit

Le poids de chaque image ne doit pas dépasser 5 Mo

Votre navigateur ne supporte pas HTML5.

Liste des photos du produit {{ $produit->libelle }}

{!! Form::open(array('url' => action('\Plugins\Catalogue\Controller\CatalogueController@update_photos', array('id' => $produit->id, "class" => "form-horizontal")))) !!}
@foreach($photos as $id => $photo) @endforeach
    Visuel Titre Actions
{!! Html::image('plugins/catalogue/img/' . $produit->id . "/icon/" . $photo) !!} {{ $photo }}
@if(count($photos) == 0) Vous n'avez pas de photos actuellement ... @endif
{!! 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() !!}
@if(getParametre('pdf_catalogue', 0) == 1)

Ajouter des PDFs au produit

Le poids de chaque fichier ne doit pas dépasser 15 Mo

Votre navigateur ne supporte pas HTML5.

{!! Form::open(array('url' => action('\Plugins\Catalogue\Controller\CatalogueController@update_pdfs', array('id' => $produit->id, "class" => "form-horizontal")))) !!} @foreach($pdfs as $id => $pdf) @endforeach
   Nom du fichier Actions
{!! Html::link('plugins/catalogue/files/' . $produit->id . "/" . $pdf, $pdf, array('target' => '_blank')) !!}
Le changement d'ordre renomme automatiquement les fichiers dans le bon ordre {!! Form::submit("Enregistrer l'ordre des PDFs", array('name' => "save", "class" => "btn btn-sm bg-light-green waves-effect m-l-15 pull-right")) !!}
{!! Form::close() !!} @if(count($pdfs) == 0) Vous n'avez pas de pdf actuellement ... @endif
@endif @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/plupload/plupload.full.js") !!} {!! Html::script("js/plupload/jquery.plupload.queue/jquery.plupload.queue.js") !!} {!! Html::script("js/tinymce/tinymce.min.js") !!} @stop