@if(old('cost_centers') || $invoice->costCenters->count() > 0)
@php
$costCentersData = old('cost_centers', $invoice->costCenters->toArray());
@endphp
@foreach($costCentersData as $index => $costCenter)
@include('customer-invoices.cost-centers.partials.cost-center-row', [
'index' => $index,
'costCenter' => $costCenter,
'costCenters' => $costCenters
])
@endforeach
@else
@include('customer-invoices.cost-centers.partials.cost-center-row', [
'index' => 0,
'costCenter' => null,
'costCenters' => $costCenters
])
@endif
الإجمالي:
النسبة: 0.00%
المبلغ: 0.00 ريال