@inject('request', 'Illuminate\Http\Request') @extends('layouts.app') @section('content') @include('admin.client_projects.operations.menu', array('client_project' => $project)) @if( 'edit' === $operation ) {!! Form::model($invoice, ['method' => 'POST', 'route' => ['admin.client_projects.invoice-project-store', $project->id, $invoice->id],'class'=>'formvalidation']) !!} @else {!! Form::open(['method' => 'POST', 'route' => ['admin.client_projects.invoice-project-store', $project->id],'class'=>'formvalidation']) !!} @endif
@lang('global.client-projects.invoice-project')
{!! Form::label('customer_id', trans('global.invoices.fields.client').'*', ['class' => 'control-label']) !!} {!! Form::select('customer_id', $customers, old('customer_id'), ['class' => 'form-control select2', 'required' => '', 'data-live-search' => 'true', 'data-show-subtext' => 'true']) !!}

@if($errors->has('customer_id'))

{{ $errors->first('customer_id') }}

@endif
{!! Form::label('currency_id', trans('global.invoices.fields.currency').'*', ['class' => 'control-label']) !!} {!! Form::select('currency_id', $currencies, old('currency_id'), ['class' => 'form-control select2', 'required' => '', 'data-live-search' => 'true', 'data-show-subtext' => 'true']) !!}

@if($errors->has('currency_id'))

{{ $errors->first('currency_id') }}

@endif
{!! Form::label('status', trans('global.invoices.fields.status').'*', ['class' => 'control-label']) !!} {!! Form::select('status', $enum_status, old('status'), ['class' => 'form-control select2', 'required' => '']) !!}

@if($errors->has('status'))

{{ $errors->first('status') }}

@endif
{!! Form::label('sale_agent', trans('global.invoices.fields.sale-agent').'*', ['class' => 'control-label']) !!} {!! Form::select('sale_agent', $sale_agents, old('sale_agent'), ['class' => 'form-control select2', 'required' => '', 'data-live-search' => 'true', 'data-show-subtext' => 'true']) !!}

@if($errors->has('sale_agent'))

{{ $errors->first('sale_agent') }}

@endif
{!! Form::label('address', trans('global.invoices.fields.address').'', ['class' => 'control-label']) !!} {!! Form::textarea('address', old('address', $address), ['class' => 'form-control ', 'placeholder' => trans('global.invoices.selected-customer-address'), 'rows' => 4, 'required' => '']) !!}

@if($errors->has('address'))

{{ $errors->first('address') }}

@endif
{!! Form::label('delivery_address', trans('global.invoices.fields.delivery-address').'', ['class' => 'control-label']) !!} {!! Form::textarea('delivery_address', old('delivery_address', $address), ['class' => 'form-control ', 'placeholder' => trans('global.invoices.selected-customer-delivery-address'), 'rows' => 4, 'id' => 'delivery_address']) !!}

@if($errors->has('delivery_address'))

{{ $errors->first('delivery_address') }}

@endif
{!! Form::label('prevent_overdue_reminders', trans('global.invoices.fields.prevent-overdue-reminders').'*', ['class' => 'control-label']) !!} {!! Form::select('prevent_overdue_reminders', yesnooptions(), old('prevent_overdue_reminders'), ['class' => 'form-control select2', 'required' => '']) !!}

@if($errors->has('prevent_overdue_reminders'))

{{ $errors->first('prevent_overdue_reminders') }}

@endif
{!! Form::label('allowed_paymodes', trans('global.invoices.fields.allowed-paymodes').'*', ['class' => 'control-label']) !!}