@extends('layouts.app') @section('title', trans('payment.edit')) @section('content')

{!! Form::model($payment, ['route'=>['payments.update', $payment->id], 'method' => 'patch']) !!}

{{ trans('payment.edit') }}

{!! FormField::radios('type', ['Pengeluaran','Pemasukan'], ['label'=> trans('payment.type')]) !!}
{!! FormField::text('date',['label'=> trans('payment.date')]) !!}
{!! FormField::text('amount',['label'=> trans('payment.amount'),'addon' => ['before'=>'Rp'],'type' => 'number','class' => 'text-right']) !!}
{!! FormField::select('customer_id', $customers, ['label'=> trans('payment.customer')]) !!} {!! FormField::textarea('description',['label'=> trans('payment.description')]) !!}
{!! Form::close() !!}
@endsection