@extends('layouts.app') @section('title', 'تعيين مراكز التكلفة') @section('content')

تعيين مراكز التكلفة

الفاتورة رقم: {{ $invoice->invoice_number }}

العودة
@if(session('success'))

{{ session('success') }}

@endif @if($errors->any())

يرجى تصحيح الأخطاء التالية:

    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')

معلومات الفاتورة

{{ $invoice->customer->name }}

{{ $invoice->invoice_date->format('Y-m-d') }}

{{ number_format($invoice->total_amount, 2) }} ريال

مراكز التكلفة

@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 ريال

@push('scripts') @endpush @endsection