@extends('layouts.page') @section('title') Project Bill View Add More - {{ $person->fullname() }} @endsection @section('navs') @endsection @section('content') @include ('common.image_viewer')
{!! Form::open(['url' => route('project_bill_view.save_more_bills', [$project_bill->name(), $project_bill->id]), 'id' => 'idThisForm', 'files' => true]) !!} {!! EasyForm::setErrors($errors) !!} {!! EasyForm::input('actual-amount', $project_bill->label('amount'), old('amount', $project_bill->amount), ['id' => 'actualAmount', 'type' => 'number']) !!} @foreach($project_bill->attachments as $i => $attachment) {!! EasyForm::viewImageFile('attachment', 'Attachment '.($i+1), $attachment->attachment) !!} @endforeach
Divide Amount
{!! EasyForm::select('term[]', null, $project_bill->term, AppHelper::options($project_bill->term_name), ['class' => 'bill-term']) !!} @if ($project_bill->name() == 'ict_project_bill') {!! EasyForm::select('category[]', null, $project_bill->category, AppHelper::options($project_bill->category_name), ['class' => 'bill-category']) !!} @endif {!! EasyForm::input('amount[]', null, $project_bill->amount, ['class' => 'bill-amount', 'type' => 'number']) !!}
{!! Form::close() !!}
@endsection