@extends('layouts.master')
@section('title') Nouveau Creancier @stop
@section('styles')
{!! Html::style('css/jquery.fancybox.css') !!}
{!! Html::style('css/jquery.fancybox-buttons.css') !!}
{!! Html::style('css/dataTables.bootstrap.css'); !!}
{!! Html::style('css/buttons.bootstrap.css'); !!}
@stop
@section('content')
@if ($errors)
@foreach ($errors->all() as $error)
{!! $error !!}
@endforeach
@endif
Nouveau Creancier
{!! Form::open(['creancier' => 'form', 'url' => '/tiers/creanciers', 'class' => 'form-horizontal']) !!}
{!! Form::hidden('mode_frame',(isset($mandat)?true:false),['id'=>'mode_frame']); !!}
{!! Form::hidden('num_creancier', '', ['id'=>'num_creancier']) !!}
{!! Form::label('origine', 'Origine') !!}
{!!
Form::select(
'origine',
[''=>' ','BEN'=>'Bénéficiaires','EMP' => 'Employeurs','CRE' => 'Créanciers','AUT' => 'Autre'],
null,
['class' => 'selectpicker','data-width' => "100%",'id'=>'origine']
)
!!}
{!! Form::label('bqcle_creancier', 'Banque') !!}
{!! Form::select(
'bqcle_creancier',
array(""=>" ")+DB::table('banques')->where('active','=','1')->orderby(db::raw("nom"))->pluck(db::raw("CONCAT(id,' ',nom) as nom"), 'id')->toArray(),
'',
['id'=>'bqcle_creancier',
'class' => 'selectpicker',
'data-width' => "100%"
])
!!}
{!! Form::label('compte', 'Compte') !!}
{!! Form::text('compte', null, ['placeholder' => "Compte", 'class' => 'form-control']) !!}
{!! Form::label('montant', 'Montant') !!}
{!! Form::text('montant', null, ['placeholder' => "Montant", 'class' => 'form-control']) !!}
{!! Form::label('typepmt', 'Type de paiement') !!}
{!!
Form::select(
'typepmt',
[''=>' ','BAN'=>'Banque','ESP' => 'Espèces','CHQ' => 'Chèque','TRE' => 'Trésor'],
null,
['id'=>'typepmt','class' => 'selectpicker','data-width' => "100%"]
)
!!}
{!! Form::close() !!}
@stop