@if($phase->id) @if($phase->taxes?->where('category', 2)->count() && !$phase->taxes?->where('category', 3)->count()) @endif
@if(!$is_paid) @if(iCan('create phase tax') && $phase->canNewTaxAdded()) @endif @if(count(@$phase->contract->deductableDownpayments ?? []) > 0 && !$phase->deduction && !$phase->is_allowable_cost && iCan('create phase deduction')) @endif @endif @if($is_partial_paid && $phase->is_allowable_cost && iCan('create phase cost adjust')) @endif {{-- @if(!$is_paid) @endif --}} {{-- deduction row before tax --}} @includeWhen($phase->deduction && $phase->deduction->is_before_tax ,'admin.pages.contracts.phases.show.deduction') {{-- show subtotal row if deduction is applied before tax --}} @if (@$phase->deduction && @$phase->deduction->is_before_tax) @include('admin.pages.contracts.phases.show.subtotal-row') @endif {{-- show tax rows --}} @include('admin.pages.contracts.phases.show.taxes') {{-- --}} @if(@$phase->deduction && !@$phase->deduction->is_before_tax) @include('admin.pages.contracts.phases.show.subtotal-row') @endif {{-- --}} @includeWhen($phase->deduction && !$phase->deduction->is_before_tax,'admin.pages.contracts.phases.show.deduction') @if($phase->is_allowable_cost && $phase->costAdjustments->count() > 0) @include('admin.pages.contracts.phases.show.cost-adjustments') @endif
Action Item Price
@if(!$is_paid) @can('update contract phase') {!! getIcon('pencil','fs-3') !!} @endcan @endif {{$phase->name}} @cMoney($phase->amount ?? $phase->estimated_cost, @$invoice->currency ?? $phase->contract->currency, true)
{{-- actions --}} @if(!$is_paid) @if((count($phase->taxes) > 0 || $phase->deduction) && iCan('manage phase manual total')) @if($phase->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 total_amount_adjustment) data-bs-toggle="tooltip" title="Calculated amount: {{cMoney(($phase->getRawOriginal('total_cost') / 100), $phase->contract->currency, true)}}" @endif >@cMoney($phase->amount ?? $phase->total_cost - (($phase->costAdjustments && count($phase->costAdjustments)) ? $phase->costAdjustments->sum('amount') : 0), @$invoice->currency ?? $phase->contract->currency, true) @if($phase->total_amount_adjustment) * @endif
{{-- actions --}} @if(!$is_paid) @can('manage phase manual total') @if($phase->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($phase->total_cost, $phase->contract->currency, true)
@else @include('admin.pages.contracts.phases.create-form') @endif