@extends('layouts.master_soft') @section('title') Controle @stop @section('content')
@if ($errors) @foreach ($errors->all() as $error)
{!! $error !!}
@endforeach @endif

Controle N°{!! $controle->id !!}

{!! Form::model($controle, [ 'url' => '/uploadfile', 'files'=>'true', 'controle' => 'form', 'enctype' => 'multipart/form-data', 'class' => 'form-horizontal' ]) !!}
{!! Form::hidden('id',$controle->id); !!}
{!! Form::label('sonum', 'Employeur') !!}
{!! $controle->sonum !!}
{!! Form::text('sonum',$controle->nom_employeur, ['disabled' => 'true','class' => 'form-control']) !!}
{!! Form::label('date_cont', 'Date du contrôle') !!}
{!! Form::text('date_cont', $controle->date, ['disabled' => 'true', 'class' => 'form-control']) !!}
{!! Form::label('Fichier', 'Fichier') !!} {!! Form::open(array('url' => '/uploadfile','files'=>'true')); !!} {!! Form::file('fichier') !!}

{!! Form::submit('Télécharger le fichier', ['class' => 'btn btn-primary','onclick'=>'']) !!}
{!! Form::close() !!}
@stop