@extends('layouts.dash_pop') @section('title') Controle @stop @section('title_card',"") @section('subtitle_card',"") @section('content')
Ajouter un document - Controle N°{!! $controle->id !!}
@if ($errors) @foreach ($errors->all() as $error)
{!! $error !!}
@endforeach @endif {{ html()->modelForm($controle, 'POST', url('uploadfile/'))->attributes(['files'=>'true','enctype' => 'multipart/form-data','class' => 'form-horizontal'])->open() }} {{ html()->hidden('id',$controle->id); }}
{!! html()->label( 'Employeur','sonum') !!}
{!! $controle->sonum !!}
{!! html()->text('sonum', $controle->nom_employeur)->attributes(['disabled' => 'true','class' => 'form-control']) !!}
{!! html()->label('Date du contrôle','date_cont') !!}
{!! html()->text('date_cont', $controle->date)->attributes(['disabled' => 'true','class' => 'form-control']) !!}
{{ html()->label( 'Fichier','Fichier') }} {{ html()->file('fichier') }}

{!! html()->button('Télécharger le fichier')->value('Télécharger')->type('submit')->attributes(['class' => 'btn btn-primary']) !!}
{{ html()->form()->close() }}
@endsection