@extends('layouts.app') @section('title', __('payment.edit')) @section('content') @include('payments.partials.breadcrumb', ['title' => __('payment.edit')])
{!! Form::model($payment, ['route' => ['payments.update', $payment], 'method' => 'patch']) !!}

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

{!! FormField::radios('in_out', [__('payment.out'), __('payment.in')], ['label' => __('payment.in_out')]) !!}
{!! FormField::radios('type_id', PaymentType::toArray(), ['label' => __('payment.type'), 'list_style' => 'unstyled']) !!}
{!! FormField::text('date', ['label' => __('app.date')]) !!}
{!! FormField::price('amount', ['label' => __('payment.amount'), 'currency' => Option::get('money_sign', 'Rp')]) !!}
{!! FormField::select('project_id', $projects, ['label' => __('payment.project')]) !!}
@if ($payment->partner_type == 'App\Entities\Users\User') {{ Form::hidden('partner_type', 'users') }} @endif {!! FormField::select('partner_id', $partners, [ 'label' => __('payment.customer'), 'placeholder' => $payment->in_out ? __('customer.select') : __('vendor.select') ]) !!}
{!! FormField::textarea('description', ['label' => __('payment.description')]) !!}
{!! Form::close() !!}
@endsection @section('ext_css') {!! Html::style(url('assets/css/plugins/jquery.datetimepicker.css')) !!} @endsection @section('ext_js') {!! Html::script(url('assets/js/plugins/jquery.datetimepicker.js')) !!} @endsection @section('script') @endsection