@if(isset($paymentVoucher))
{!! Form::label('date','التاريخ:*') !!} {!! Form::date('date', date('Y-m-d', strtotime($paymentVoucher->date)),['class' => 'form-control'])!!}
@else
{!! Form::label('date','التاريخ:*') !!} {!! Form::date('date', date('Y-m-d'),['class' => 'form-control'])!!}
@endif @if(!isset($paymentVoucher))
{!! Form::label('trainee','المستلم طالب:') !!}
@endif @if(isset($paymentVoucher)) @if($paymentVoucher->trainee!=1)
{!! Form::label('recipient', ' المستلم') !!} {!! Form::text('recipient', null, ['class' => 'form-control']) !!}
@else
{!! Form::label('recipient', ' المستلم ') !!} {!! Form::select('recipient', App\Trainee::all()->pluck('name', 'id')->toArray(),null, ['class' => 'form-control select']) !!}
@endif @else
{!! Form::label('recipient', ' المستلم') !!} {!! Form::text('recipient', null, ['class' => 'form-control']) !!}
@endif @if(!isset($paymentVoucher))
{!! Form::label('course','مركز التكلفة مقرر:') !!}
@endif @if(isset($paymentVoucher)) @if($paymentVoucher->course!=1)
{!! Form::label('service_name', ' مركز التكلفة') !!} {!! Form::text('service_name', null, ['class' => 'form-control']) !!}
@else
{!! Form::label('service_name', ' مركز التكلفة ') !!} {!! Form::select('service_name', App\Course::all()->pluck('title', 'id')->toArray(),null, ['class' => 'form-control select']) !!}
@endif @else
{!! Form::label('service_name', ' مركز التكلفة') !!} {!! Form::text('service_name', null, ['class' => 'form-control']) !!}
@endif
{!! Form::label('account_id', ' الحساب ') !!} {!! Form::select('account_id', App\Account::noSubAccounts(),null, ['class' => 'form-control select']) !!}
{!! Form::label('currency_id', ' العملة ') !!} {!! Form::select('currency_id', App\Currency::all()->pluck('name', 'id')->toArray(),null, ['class' => 'form-control select']) !!}
{!! Form::label('definition_payment_id', ' طريقةالدفع ') !!} {!! Form::select('definition_payment_id', App\Definition::where('type',6)->pluck('name', 'id')->toArray(),null, ['class' => 'form-control select']) !!}
{!! Form::label('amount',' المبلغ') !!} {!! Form::number('amount', null, ['class' => 'form-control']) !!}
{!! Form::label('note','التفاصيل') !!} {!! Form::text('note', null, ['class' => 'form-control']) !!}
{!! Form::label('attachment', ' المرفقات') !!} {!!Form::file('attachment', null, ['class' => 'form-control']) !!} @if(isset($paymentVoucher)) @if($paymentVoucher->attachment)
عرض @endif @endif
@if(isset($paymentVoucher))
{!! Form::label('exchange_date','تاريخ الصرف:') !!} {!! Form::date('exchange_date', date('Y-m-d', strtotime($paymentVoucher->exchange_date)),['class' => 'form-control'])!!}
@else
{!! Form::label('exchange_date','تاريخ الصرف:') !!} {!! Form::date('exchange_date', date('Y-m-d'),['class' => 'form-control'])!!}
@endif
{!! Form::label('number','رقم الصرف') !!} {!! Form::text('number', null, ['class' => 'form-control']) !!}
{!! Form::submit('حفظ', ['class' => 'btn btn-primary']) !!} إلغاء