@extends('layouts.admin') @section('css') @parent {!! Html::style('adminbsb_plugins/bootstrap-select/css/bootstrap-select.min.css') !!} @stop @section('content')

folder Catalogue

{!! Form::model($categorie, array("class" => "form-horizontal", "files" => true)) !!}
@if(count(getAllLangues()) > 1) @endif
@if($categorie != 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")) !!}

Catégorie du catalogue

Éditer une catégorie

{!! Form::text('libelle', old('libelle'), array("class" => "form-control", "placeholder" => "Nom de la catégorie", "required")) !!}
{!! Form::select('parent_id', $parents, old('parent_id')) !!}
{!! Form::checkbox('menu', 1, old('menu'), array("id" => 'menu', "class" => "filled-in chk-col-teal")) !!}

Description de la catégorie

{!! Form::textarea('description', old('description'), array("style" => "width: 100%", "class" => "editor")) !!}

Référencement de la catégorie

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 de la catégorie", "maxlength" => 80, "ID" => "idtitle")) !!}
Nombre de charactère :
{!! Form::text('meta_description', old('meta_description'), array("class" => "form-control", "placeholder" => "META Description de la catégorie", "maxlength" => 170, "ID" => "idmeta")) !!}
Nombre de charactère :
{!! Form::text('rewrite', old('rewrite'), array("class" => "form-control", "placeholder" => "Rewrite de la catégorie")) !!}
{!! 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($categorie != 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")) !!}

Catégorie du catalogue

Éditer une catégorie

{!! Form::text($langue->suffixe . '_libelle', getTranslation("Categorie", "libelle", $categorie ? $categorie->id : null, $categorie ? $categorie->libelle : null, $langue->suffixe), array("class" => "form-control", "placeholder" => "Nom de la catégorie")) !!}
{!! Form::select($langue->suffixe . '_parent_id', $parents, getTranslation("Categorie", "parent_id", $categorie ? $categorie->id : null, $categorie ? $categorie->parent_id : null, $langue->suffixe)) !!}

Description de la catégorie

{!! Form::textarea($langue->suffixe . '_description', getTranslation("Catégorie", "description", $categorie ? $categorie->id : null, $categorie ? $categorie->description : null, $langue->suffixe), array("style" => "width: 100%", "class" => "editor")) !!}

Référencement de la catégorie

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

{!! Form::text($langue->suffixe . '_meta_title', getTranslation("Categorie", "meta_title", $categorie ? $categorie->id : null, $categorie ? $categorie->meta_title : null, $langue->suffixe), array("class" => "form-control", "placeholder" => "META Title de la catégorie", "maxlength" => 80)) !!}
{!! Form::text($langue->suffixe . '_meta_description', getTranslation("Categorie", "meta_description", $categorie ? $categorie->id : null, $categorie ? $categorie->meta_description : null, $langue->suffixe), array("class" => "form-control", "placeholder" => "META Description de la catégorie", "maxlength" => 170)) !!}
{!! Form::text('rewrite', old('rewrite'), array("class" => "form-control", "placeholder" => "Rewrite de la catégorie")) !!}
{!! 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

Couverture de la catégorie

Le seul format accepté est le .jpg
Le poids de votre image ne doit pas dépasser 5 Mo.

{!! Form::file('couverture', array("class" => "form-control")) !!}
@if($categorie)
{!! Html::image('plugins/catalogue/img/categories/' . $categorie->id . "/couverture.jpg", "", array("class" => "img-responsive", "width" => 300)) !!} delete_forever
@endif
{!! Form::hidden('id') !!} {!! Form::hidden('rang') !!} {!! Form::close() !!} @if($categorie != null) @if(sizeof($variables) != 0) {!! Form::open(array('action' => '\Plugins\Catalogue\Controller\CatalogueController@update_variable'), array("class" => "form-horizontal")) !!}

Variables additionnelles

Éditer les variables de la catégorie

@foreach ($variables as $variable) @endforeach
ID Nom de la variable Stockable Actions
{{ $variable->id }} {{ $variable->nom }} {{ $variable->stock == 0 ? "Non" : "Oui" }}
add
{!! Form::close() !!} @else

Variables additionnelles

Éditer les variables de la catégorie

@endif @if(sizeof($stockables) != 0) {!! Form::open(array('action' => '\Plugins\Catalogue\Controller\CatalogueController@update_stockable'), array("class" => "form-horizontal")) !!}

Variables additionnelles de stock

Éditer les variables stockables de la catégorie

@foreach ($stockables as $variable) @endforeach
ID Nom de la variable Stockable Actions
{{ $variable->id }} {{ $variable->nom }} {{ $variable->stock == 0 ? "Non" : "Oui" }}
add
{!! Form::close() !!} @endif @endif @stop @section('js') @parent {!! Html::script("adminbsb_plugins/bootstrap-select/js/bootstrap-select.min.js") !!} {!! Html::script("js/tinymce/tinymce.min.js") !!} @stop