{{-- @if ($editItem->invoiceable)
ID{{ $editItem->invoiceable->id }}
Name{{ $editItem->invoiceable->name }}
Cost{{ cMoney($editItem->invoiceable->estimated_cost ?? 0, $invoice->currency) }}
Due Date{{ $editItem->invoiceable->due_date }}
@else

No linked entity found for this invoice item.

@endif --}} @php $is_paid = false; $is_partial_paid = false; @endphp
@if(!$is_paid) @if(iCan('create phase tax') && $editItem->invoiceable->canNewTaxAdded())
@endif @if(count(@$editItem->invoiceable->contract->deductableDownpayments ?? []) > 0 && !$editItem->invoiceable->deduction && !$editItem->invoiceable->is_allowable_cost && iCan('create phase deduction')) @endif @endif @if($is_partial_paid && $editItem->invoiceable->is_allowable_cost && iCan('create phase cost adjust')) @endif
@if($editItem->invoiceable && $editItem->invoiceable instanceof \App\Models\ContractPhase) @endif
@livewire('scrumboard::contract-phase.contract-phase-deduction-form', [ 'phase' => $editItem->invoiceable, ], key('deduction-form-'.$editItem->invoiceable->id.'-'.now()->timestamp))
@livewire('scrumboard::contract-phase.contract-phase-tax-form', [ 'phase' => $editItem->invoiceable, ], key('tax-form-'.$editItem->invoiceable->id.'-'.now()->timestamp))
@livewire('scrumboard::contract-phase.total-amount-adjustment-form', [ 'phase' => $editItem->invoiceable, ], key('adjustment-form-' . $editItem->invoiceable->id . '-' . now()->timestamp))
@if($editItem->invoiceable->id) @if($editItem->invoiceable->taxes?->where('category', 2)->count() && !$editItem->invoiceable->taxes?->where('category', 3)->count()) @endif
{{-- @if(!$is_paid) @endif --}} {{-- deduction row before tax --}} @includeWhen($editItem->invoiceable->deduction && $editItem->invoiceable->deduction->is_before_tax ,'scrumboard::livewire.invoices.edit.contract-phase.deduction') {{-- show subtotal row if deduction is applied before tax --}} @if (@$editItem->invoiceable->deduction && @$editItem->invoiceable->deduction->is_before_tax) @include('scrumboard::livewire.invoices.edit.contract-phase.subtotal-row') @endif {{-- show tax rows --}} @include('scrumboard::livewire.invoices.edit.contract-phase.taxes') {{-- --}} @if(@$editItem->invoiceable->deduction && !@$editItem->invoiceable->deduction->is_before_tax) @include('scrumboard::livewire.invoices.edit.contract-phase.subtotal-row') @endif {{-- --}} @includeWhen($editItem->invoiceable->deduction && !$editItem->invoiceable->deduction->is_before_tax,'scrumboard::livewire.invoices.edit.contract-phase.deduction') @if($editItem->invoiceable->is_allowable_cost && $editItem->invoiceable->costAdjustments->count() > 0) @include('admin.pages.contracts.phases.show.cost-adjustments') @endif
Action Items Price
@if(!$is_paid) @can('update contract phase') {!! getIcon('pencil','fs-3') !!} {{-- {!! getIcon('pencil','fs-3') !!} --}} @endcan @endif {{$editItem->invoiceable->name}} @cMoney($editItem->invoiceable->amount ?? $editItem->invoiceable->estimated_cost, @$invoice->currency ?? $editItem->invoiceable->contract->currency, true)
{{-- actions --}} @if(!$is_paid) @if((count($editItem->invoiceable->taxes) > 0 || $editItem->invoiceable->deduction) && iCan('manage phase manual total')) @if($editItem->invoiceable->total_amount_adjustment) {{-- remove manual total --}} {!! getIcon('arrows-loop','fs-3') !!} @endif {{-- edit manual total --}} {!! getIcon('pencil', 'fs-3') !!} @endif @endif {{-- end actions --}} Item Total invoiceable->total_amount_adjustment) data-bs-toggle="tooltip" title="Calculated amount: {{cMoney(($editItem->invoiceable->getRawOriginal('total_cost') / 100), $editItem->invoiceable->contract->currency, true)}}" @endif >@cMoney($editItem->invoiceable->amount ?? $editItem->invoiceable->total_cost - (($editItem->invoiceable->costAdjustments && count($editItem->invoiceable->costAdjustments)) ? $editItem->invoiceable->costAdjustments->sum('amount') : 0), @$invoice->currency ?? $editItem->invoiceable->contract->currency, true) @if($editItem->invoiceable->total_amount_adjustment) * @endif
{{-- actions --}} @if(!$is_paid) @can('manage phase manual total') @if($editItem->invoiceable->total_amount_adjustment) {{-- remove manual total --}} {!! getIcon('arrows-loop','fs-3') !!} @endif {{-- edit manual total --}} {!! getIcon('pencil','fs-3') !!} @endcan @endif {{-- end actions --}} Grand Total @cMoney($editItem->invoiceable->total_cost, $editItem->invoiceable->contract->currency, true)
@else @include('admin.pages.contracts.phases.create-form') @endif
Delete Adjustment
Are you sure you want to remove the adjustment for: ?
Delete Action
Are you sure you want to delete the tax: ?
{{--
VAT & Deduction
--}}