@if ($invoiceItem->id) {{-- item update --}} {!! Form::model($invoiceItem, ['route' => ['admin.invoices.invoice-items.update', [$invoice, $invoiceItem->id, 'item' => request()->item]], 'method' => 'PUT', 'id' => 'item-create', ]) !!} @else {!! Form::model($invoiceItem, ['route' => ['admin.invoices.invoice-items.store', [$invoice, 'item' => request()->item]], 'method' => 'POST', 'id' => 'item-create' ]) !!} @endif
@php $disabled = isset($tax_rates) || isset($deduction_rates) ? 'disabled' : ''; @endphp @includeWhen((request()->item != 'custom'), 'admin.pages.invoices.items.edit-phases-general') @includeWhen((request()->item == 'custom'), 'admin.pages.invoices.items.edit-custom-item-general') {{-- @if(isset($deduction_rates)) --}} {{-- Subtotal --}}
{{ Form::label('subtotal', __('Subtotal'), ['class' => 'col-form-label']) }} {!! Form::number('subtotal', null, ['class' => 'form-control', $disabled,'placeholder' => __('Subtotal')]) !!}
{{-- @endif --}}
@if(isset($deduction_rates)) {{-- total_tax_amount --}}
{{ Form::label('t_total_tax_amount', __('Total Tax'), ['class' => 'col-form-label']) }} {!! Form::number('t_total_tax_amount', $invoiceItem->total_tax_amount, ['class' => 'form-control', 'disabled','placeholder' => __('Total Tax')]) !!}
{{-- total --}}
{{ Form::label('t_total', __('Total'), ['class' => 'col-form-label']) }} {!! Form::number('t_total', $invoiceItem->total, ['class' => 'form-control', 'disabled','placeholder' => __('Total')]) !!}
@endif {{-- decription --}}
{{ Form::label('description', __('Description'), ['class' => 'col-form-label']) }} {!! Form::text('description', null, ['class' => 'form-control', $disabled, 'placeholder' => __('Description')]) !!}
{!! Form::close() !!}