@extends('layouts.dash') {!! $with_navbar=false !!} @section('title') Capteur @stop @section('title_card',"Nouveau Capteur") @section('content')
@if ($errors) @foreach ($errors->all() as $error)
{!! $error !!}
@endforeach @endif
{!! Form::open(['role' => 'form', 'url' => '/capteurs']) !!}
{!! Form::label('nom', 'Nom') !!} {!! Form::text('nom', null, ['placeholder' => 'Nom', 'class' => 'form-control']) !!}
{!! Form::label('id_ruche', 'Ruche') !!} {!! Form::select('id_ruche', $liste_ruches,'',['placeholder' => 'A definir','class' => 'form-control']) !!}
{!! Form::label('id_type_capteur', 'Type de capteur') !!} {!! Form::select('id_type_capteur', $liste_types_capteurs,'',['placeholder' => 'A definir','class' => 'form-control']) !!}
{!! Form::label('alerte_bas', "Niveau d'alerte bas") !!} {!! Form::text('alerte_bas', null, ['placeholder' => 'valeur', 'class' => 'form-control']) !!}
{!! Form::label('alerte_haut', "Niveau d'alerte haut") !!} {!! Form::text('alerte_haut', null, ['placeholder' => 'valeur', 'class' => 'form-control']) !!}
{!! Form::submit('Enregistrer', ['class' => 'btn btn-primary']) !!} Retour
{!! Form::close() !!}
@endsection