@extends('layouts.app') @section('style') @stop @section('content') @include('inventories.cmodal')
@if($type == 'create_new') @lang('layout.CreateNewPorject') @else @lang('layout.UpdateProject') @endif {{--some info...--}}
@if($type == 'create_new') {!! Form::model($projects, ['method' => 'POST','class'=>'form-horizontal','route' => ['project.store']]) !!} @else {!! Form::model($projects, ['method' => 'PATCH','route' => ['project.update',$projects->id],'class'=>'form-horizont','id'=>'project-form','files'=> true]) !!} @endif
{{Form::text('name',null,['class' => 'form-control','placeholder' => __('layout.ContractName')])}}
{{Form::text('number',null,['class' => 'form-control'])}}
@if($type == 'create_new') @else {{Form::number('project_price',null,['class' => 'form-control','placeholder' => __('layout.Price'), 'step'=>'any' ])}} @endif
{{Form::number('initial_price',null,['class' => 'form-control','placeholder' => __('layout.InitialPrice'), 'step'=>'any' ])}}
@{{selected_currency.symbol}} %
@{{selected_currency.symbol}}
@{{ errors.first('customer_id') }}
@{{ errors.first('expense_account') }}
@{{ errors.first('asset_account') }}
@lang('layout.Total') @{{ Number.parseFloat((subtotal - (discount*subtotal/100))).toFixed(2)}} @{{selectedCurrency.symbol}}
@lang('layout.Discount'): (@{{ Number.parseFloat(discount).toFixed(2) }}%) @{{ Number.parseFloat(discount*subtotal/100).toFixed(2) }} @{{selectedCurrency.symbol}}
@lang('layout.Sub-Total') @{{ subtotal.toFixed(2)}} @{{selectedCurrency.symbol}}

@lang('layout.Volunteeres')

{{Form::number('grantee_amount',null,['class' => 'form-control','placeholder' => __('layout.GranteeAmount'), 'step'=>'any' ])}}
# @lang('layout.Name') @lang('layout.Price') @lang('layout.Discount') @lang('layout.Type') @lang('layout.Description')
@{{index+1}}

@lang('layout.StuffDetails')

# @lang('layout.Category') @lang('layout.ItemName') @lang('layout.SiteName') @lang('layout.Quantity') @lang('layout.OnHand') @lang('layout.Measure') @lang('layout.SalePrice') @lang('layout.Total')
@{{index+1}} @{{ errors.first('inventory_id['+index+']') }} @{{ errors.first('inventory_quantity['+index+']') }} @{{myRound((item.item==null)?null:saleItemQuantity(item.item,item.item.quantity))}}
@{{selected_currency.symbol}}
@{{selected_currency.symbol}}

@lang('layout.Formula')

# @lang('layout.ItemName') @lang('layout.FormulaName') @lang('layout.QuantityToBuild') @lang('layout.Price') @lang('layout.Total')
@{{Index+1}} {{-- --}}
@if(systemConfig()[30] == 1) @{{selected_currency.symbol}} @else @{{selected_currency.symbol}} @endif
@if(systemConfig()[30] == 1) @else @endif @{{selected_currency.symbol}}

@lang('menu.BuildWithoutFormula')

# @lang('layout.ItemName') @lang('layout.QuantityToBuild') @lang('layout.Price') @lang('layout.Total')
@{{productionIndex+1}}
@{{selected_currency.symbol}}
@{{selected_currency.symbol}}

@lang('layout.Service')

# @lang('layout.ServiceName') @lang('layout.Quantity') @lang('layout.Measure') @lang('layout.Price') @lang('layout.Total')
@{{index+1}}
@{{selected_currency.symbol}}
@{{selected_currency.symbol}}

@lang('layout.Shareholder')

# @lang('layout.Shareholder') @lang('layout.Percentage')
@{{index+1}}

@lang('layout.ProjectSteps')

# @lang('layout.Name') @lang('layout.Number') @lang('layout.StartDate') @lang('layout.EndDate') @lang('layout.Status') @lang('layout.Expense') @lang('layout.User') @lang('layout.Photo') @lang('layout.Description')
@{{index+1}}
{{-- project info part start --}}

@lang('layout.PrintInformation')

# @lang('layout.Issue') @lang('layout.Quantity') @lang('layout.Type') @lang('layout.Description')
@{{index+1}}
{{-- project info part end --}}
# @lang('layout.SelectBank') @lang('layout.Amount') @lang('layout.Rate') @lang('layout.Currency') @lang('layout.Amount') @lang('layout.Total') @lang('layout.Description')
@{{index+1}} @{{myRound(Number((payment.item==null)?null:payment.item.balance)+Number((payment.item==null)?null:payment.item.amount))}}
@{{(payment.item==null)?null:payment.item.code}}
@{{ (payment.item==null)?null:totalPayment(payment.item,selected_currency.rate,selected_currency.hq_rate,selected_currency.static_rate).result }} @{{selected_currency.symbol}}
@lang('layout.Cancel')
{{-- {!! Form::model($projects, ['method' => 'PATCH','class'=>'form-horizontal','route' => ['project.update',$projects->id]]) !!} --}}
{{--
--}}
{{Form::close()}}
@endsection @push('scripts') @endpush