@extends('layouts.master') @section('title') {{ __('home.edit_invoice') }} @stop @section('css') @endsection @section('content')
{{ __('sales.edit_invoice_title') }} #{{ $invoice->id }}
{{ $invoice->created_at->format('Y-m-d') }}
{{-- بداية النموذج الشامل --}}
@csrf
{{-- 1. الجانب الأيمن: بيانات الفاتورة الأصلية ونوع التعديل --}}
{{ __('sales.label_invoice_id') }} #{{ $invoice->id }}
{{ __('sales.label_customer') }} {{ $invoice->customer->name ?? __('sales.not_registered') }}
{{ __('sales.label_phone') }} {{ $invoice->customer->phone ?? __('sales.not_registered') }}
{{ __('sales.label_tailor') }} {{ $invoice->employee->name_ar ?? __('sales.no_tailor') }}
{{ __('sales.label_branch') }} {{ $invoice->branch->name ?? __('sales.main_branch') }}
{{-- اختيار نوع التعديل --}}
{{-- 2. الجانب الأيسر: تفاصيل ومواصفات التعديل والخامات --}}
{{-- سكشن التعديل المكلف (يظهر عند اختيار تعديل مكلف) --}}
{{-- زر الحفظ النهائي --}}
{{-- مودال الخامات المستهلكة (داخل الـ Form لضمان إرسال البيانات للكنترولر) --}}
{{-- نهاية النموذج --}}
@endsection @section('js') @if(session('success')) @endif @endsection