@section('title', 'تعديل مكينة الدفع') @section('page-title', 'تعديل مكينة الدفع') @section('page-description', 'تعديل بيانات مكينة الدفع أو نقلها لمحطة أخرى')
{{-- Header --}}

تعديل: {{ $paymentDevice->name }}

الكود: {{ $paymentDevice->device_code }}

العودة للقائمة
{{-- Form --}}
@csrf @method('PUT')
{{-- Station Selection --}}
@error('station_id')

{{ $message }}

@enderror @if($paymentDevice->station_id != old('station_id', $paymentDevice->station_id))

المحطة الحالية: {{ $paymentDevice->station->name }}

@endif
{{-- Device Code --}}
@error('device_code')

{{ $message }}

@enderror

كود فريد للمكينة في المحطة المختارة

{{-- Device Name --}}
@error('name')

{{ $message }}

@enderror
{{-- Active Status --}}
is_active) ? 'checked' : '' }} class="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700">

المكائن النشطة فقط تظهر في نماذج إنهاء الورديات

{{-- Current Status Info --}}

الحالة الحالية: {{ $paymentDevice->is_active ? 'نشطة' : 'معطلة' }}

{{-- Usage Statistics --}} @if($paymentDevice->usage_count > 0)

إحصائيات الاستخدام

عدد مرات الاستخدام: {{ $paymentDevice->usage_count }}
@if($paymentDevice->last_used)
آخر استخدام: {{ $paymentDevice->last_used->start_datetime->format('Y/m/d') }}
@endif
@endif {{-- Form Actions --}}
إلغاء