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

shopping_cart Gérer vos ventes en ligne

{!! Form::model($transporteur, array("files" => true, "class" => "form-horizontal")) !!}
{!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Vente\Controller\VenteController@transporteurs') . "'", "class" => "btn btn-sm bg-orange waves-effect pull-right")) !!}

Paramètre du transporteur

{!! Form::text('nom', old('nom'), array("class" => "form-control", "placeholder" => "Nom du transporteur")) !!}
{!! Form::file('logo', array("class" => "form-control")) !!}
@if($transporteur && $transporteur->logo)
{!! Html::image('plugins/vente/img/' . $transporteur->id . "/" . $transporteur->logo) !!}
@endif

Zones du transporteur

@foreach($zones as $zone) {!! Form::checkbox('zones[]', $zone->id, $transporteur && $transporteur->zones()->find($zone->id) ? true : false, array("id" => "utilise" . $zone->id, "class" => "filled-in chk-col-teal")) !!} @endforeach

Divers

{!! Form::text('poids_max', old('poids_max'), array("class" => "form-control", "placeholder" => "Poids maximum")) !!}
{!! Form::text('tva', old('tva'), array("class" => "form-control", "placeholder" => "TVA")) !!}
{!! Form::checkbox('gratuit', 1, $transporteur ? $transporteur->gratuit : false, array("id" => "gratuit", "class" => "filled-in chk-col-teal")) !!}
@if($transporteur)

Plages de poids

@if($transporteur && sizeof($transporteur->poids) > 0) @foreach($transporteur->poids as $poids) @endforeach @else
ID Sera appliquée lorsque le poids est >= Sera appliquée lorsque le poids est < Actions
{{ $poids->id }} {{ $poids->min }} {{ $poids->max }}

Vous n'avez pas encore de gamme de poids...

@endif add
@endif {!! Form::hidden('id') !!} {!! Form::close() !!} @stop