@extends('layouts.page')
@section('title')
{{ $program->title() }}
@endsection
@section('navs')
@endsection
@section('content')
{!! Form::open(['url' => route('program.payment.update', [$program->name(), $program->id, $payment->id]),'files' => true]) !!}
{!! EasyForm::setErrors($errors) !!}
{!! EasyForm::file('quotation', $payment->label('quotation'), old('quotation', $payment->quotation))!!}
{!! EasyForm::select('payee_type', 'To Whom', old('payee_type', $payment->payee_type), ['vendor' => 'Vendor', 'incharge' => 'Incharge Person'])!!}
{!! EasyForm::dependent('payee', 'Existing Vendor/Incharge', old('payee', $payment->payee), ProgramHelper::getExistingPayee($program), 'payee_type')!!}
{!! EasyForm::select('amount_particulars[]', 'Amount Particular', old('amount_particulars', $payment->amount_particulars), ProgramHelper::remainingAccountTransferParticulars($program, $payment), ['multiple' => true])!!}
{!! EasyForm::submit('Submit') !!}
{!! Form::close() !!}
@endsection