@extends('layouts.admin') @section('title', trans('general.title.new', ['type' => trans_choice('general.bills', 1)])) @section('content')
{!! Form::open(['url' => 'expenses/bills', 'files' => true, 'role' => 'form']) !!}
{!! Form::label('vendor_id', trans_choice('general.vendors', 1), ['class' => 'control-label']) !!}
{!! Form::select('vendor_id', $vendors, null, array_merge(['id' => 'vendor_id', 'class' => 'form-control', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.vendors', 1)])])) !!}
{!! $errors->first('vendor_id', '

:message

') !!}
{{ Form::selectGroup('currency_code', trans_choice('general.currencies', 1), 'exchange', $currencies, setting('general.default_currency')) }} {{ Form::textGroup('billed_at', trans('bills.bill_date'), 'calendar',['id' => 'billed_at', 'class' => 'form-control', 'required' => 'required', 'data-inputmask' => '\'alias\': \'yyyy/mm/dd\'', 'data-mask' => ''],Date::now()->toDateString()) }} {{ Form::textGroup('due_at', trans('bills.due_date'), 'calendar',['id' => 'due_at', 'class' => 'form-control', 'required' => 'required', 'data-inputmask' => '\'alias\': \'yyyy/mm/dd\'', 'data-mask' => ''],Date::now()->toDateString()) }} {{ Form::textGroup('bill_number', trans('bills.bill_number'), 'file-text-o') }} {{ Form::textGroup('order_number', trans('bills.order_number'), 'shopping-cart',[]) }}
{!! Form::label('items', trans_choice('general.items', 1), ['class' => 'control-label']) !!}
{{ trans('general.actions') }} {{ trans('general.name') }} {{ trans('bills.quantity') }} {{ trans('bills.price') }} {{ trans_choice('general.taxes', 1) }} {{ trans('bills.total') }}
{!! Form::select('item[' . $item_row . '][tax_id]', $taxes, setting('general.default_tax'), ['id'=> 'item-tax-'. $item_row, 'class' => 'form-control select2', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.taxes', 1)])]) !!} 0
{{ trans('bills.sub_total') }} 0
{{ trans_choice('general.taxes', 1) }} 0
{{ trans('bills.total') }} 0
{{ Form::textareaGroup('notes', trans_choice('general.notes', 2)) }} {{ Form::fileGroup('attachment', trans('general.attachment'),[]) }}
{!! Form::close() !!} @endsection @push('js') @endpush @push('css') @endpush @push('scripts') @endpush