@extends('layouts.master') @section('title', 'تعديل عرض') @section('css') @endsection @section('content')
@if ($errors->any())
@endif
@csrf @method('PUT')
تعديل عرض #{{ $offer->offer_no }}
رجوع
is_live ?? 1) ? 'checked' : '' }}>
target_member_ids) || old('all_members'))>
target_customer_ids) || old('all_customers'))>
عند تفعيل “جميع العملاء” سيتم تجاهل هذه القائمة.
اكتب الأكواد مفصولة بفواصل؛ سنفككها قبل الحفظ.
@php $dt = old('discount_type', $offer->discount_type); @endphp
يُطبّق تلقائيًا على كل الخدمات.
قائمة الخدمات
@php $locale = app()->getLocale(); @endphp @foreach ($offer->items as $i => $it) @php $n = $it->service?->getTranslation('name', $locale) ?? ($it->service_name[$locale] ?? ($it->service_name['en'] ?? '')); @endphp @endforeach
# الخدمة السعر الأساسي المدة الأساسية المدة الإضافية السعر النهائي المدة النهائية حذف
{{ $i + 1 }}
{{ $n }}
النوع/المدة الأساسية: {{ $it->base_duration_value }} {{ $it->base_duration_unit }}
{{ number_format($it->base_price, 2, '.', '') }} {{ $it->base_duration_value }} {{ $it->base_duration_unit }} {{ old('extra_days', $offer->extra_days) ?: 0 }} days 0.00 0
@endsection @section('js') @endsection