@extends('layouts.default') @section('title', trans('general.title.edit', ['type' => trans_choice('general.bills', 1)])) @section('new_button') view_list{{ trans_choice('general.bills', 1) . ' List' }} remove_red_eyeshow add {{ trans_choice('general.bills', 2) }} @endsection @section('content') {!! Form::model($bill, ['method' => 'PATCH', 'files' => true, 'url' => ['expenses/bills', $bill->id], 'role' => 'form']) !!}
{{ Form::selectGroup('vendor_id', trans_choice('general.vendors', 1), $vendors, null, ['data-live-search'=>"true"]) }}
{{ Form::textGroup('vendor_email', trans('general.email'), null, []) }}
{{ Form::hidden('currency_code', setting('general.default_currency') , ['id' => 'currency_code']) }}
{{ trans_choice('general.net_term', 1) }} {!! Form::select('net_term', $terms, setting('general.default_netterm'), array_merge(['class' => 'selectpicker','id'=>'net_term','data-live-search'=>'true','placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.net_term', 1)])])) !!} {!! $errors->first('net_term', '

:message

') !!}
{{ Form::textGroup('billed_at', trans('invoices.invoice_date'), Date::parse($bill->billed_at)->format('Y-m-d'), ['id' => 'billed_at', 'class' => 'form-control', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'']) }}
{{ Form::textGroup('due_at', 'Due at', Date::parse($bill->due_at)->format('Y-m-d'), ['id' => 'due_at', 'class' => 'form-control', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'']) }}
{{ Form::textGroup('bill_number', trans('bills.bill_number'), null) }}
{{ Form::textGroup('order_number', trans('bills.order_number'), null, []) }}

Account Details

@forelse($bill->account_details as $item) @empty @endforelse
{{ trans('general.actions') }} {{ trans_choice('general.accounting',1) }} {{ trans('general.description') }} {{ trans('general.quantity') }} {{ trans('bills.price') }} {{ trans('bills.total') }}
0
0
{{ trans('bills.sub_total') }} 0
{{ trans('bills.total') }} 0
{{ Form::fileGroup('attachment', trans('general.attachment')) }}
{{ Form::textareaGroup('notes', trans_choice('general.notes', 2)) }}
{{ Form::saveButton('update expenses/bills') }}
{!! Form::close() !!} @include('accounts/common/models/chartofaccount') @include('includes.datepicker') @endsection