@extends('layouts.master') @section('title') Consultation d'un Creancier @stop @section('content') @section('styles') {!! Html::style('css/jquery.fancybox.css') !!} {!! Html::style('css/jquery.fancybox-buttons.css') !!} @stop
@if ($errors) @foreach ($errors->all() as $error)
{!! $error !!}
@endforeach @endif

Consultation du Creancier {!! str_pad($creancier->id, 6, "0", STR_PAD_LEFT) !!}

{!! Form::model($creancier, ['creancier' => 'form' , 'url' => '/tiers/creanciers/' . $creancier->id, 'method' => 'PUT', 'class' => 'form-horizontal']) !!}
{!! Form::label('num_creancier', 'N°Créancier') !!} {!! Form::text('num_creancier', $creancier->num_creancier, ['readonly', 'class' => 'form-control']) !!}
{!! Form::label('nom', 'Nom') !!} {!! Form::text('nom', $creancier->nom, ['readonly', 'class' => 'form-control']) !!}
{!! Form::label('prenom', 'Prénom') !!} {!! Form::text('prenom', $creancier->prenom, ['readonly','class' => 'form-control']) !!}
{!! Form::label('datenaiss', 'Date de naissance') !!} {!! Form::text('datenaiss', $creancier->datenaiss, ['readonly', 'class' => 'form-control']) !!}
Mandat
{!! Form::label('idmandat', 'N°Mandat') !!} {!! Form::text('idmandat', $creancier->idmandat, ['readonly', 'class' => 'form-control']) !!}
{!! Form::label('date_sai', 'Date de mandat') !!} {!! Form::text('date_sai', $mandat->date_sai, ['readonly', 'class' => 'form-control']) !!}
{!! Form::label('statut', 'Statut') !!} {!! Form::text('statut', $mandat->statut, ['readonly', 'class' => 'form-control']) !!}
{!! Form::label('idimp_mdt', 'Imputation') !!} {!! Form::select( 'idimp_mdt', $imputations, $creancier->idimp_mdt, ['id'=>'typepmt','class' => 'selectpicker','data-width' => "100%","disabled"] ) !!}
Règlement
{!! Form::label('bqcle_creancier', 'Banque') !!} {!! Form::select( 'bqcle_creancier', array(""=>" ")+DB::table('banques')->orderby(db::raw("nom"))->pluck(db::raw("CONCAT(id,' ',nom) as nom"), 'id')->toArray(), $creancier->bqcle_creancier, ['id'=>'bqcle_creancier', 'class' => 'selectpicker', 'data-width' => "100%",'disabled'=>'disabled' ]) !!}
{!! Form::label('compte', 'Compte') !!} {!! Form::text('compte', $creancier->compte, ['readonly', 'class' => 'form-control']) !!}
{!! Form::label('montant', 'Montant') !!} {!! Form::text('montant', $creancier->montant, ['readonly', 'class' => 'form-control']) !!}
{!! Form::label('typepmt', 'Type de paiement') !!} {!! Form::select( 'typepmt', ['BAN'=>'Banque','ESP' => 'Espèces','CHQ' => 'Chèque','TRE' => 'Trésor'], $creancier->typepmt, ['class' => 'selectpicker','data-width' => "100%",'disabled'] ) !!}
{!! Form::label('obs', 'Observations') !!} {!! Form::textarea('obs', null, ['readonly','class' => 'form-control', 'rows'=>'2']) !!}
@if(!$frame)
@endif {!! Form::close() !!}
@stop @section('scripts') {!! Html::script('js/jquery.fancybox.js') !!} @stop