@push('third_party_stylesheets')
@endpush
@php
$materialIcons = [
'wifi', 'ac_unit', 'pool', 'tv', 'local_parking', 'kitchen', 'fitness_center', 'spa', 'pets', 'restaurant',
'local_bar', 'local_cafe', 'room_service', 'elevator', 'accessible', 'smoke_free', 'smoking_rooms', 'child_care',
'business_center', 'meeting_room', 'airport_shuttle', 'local_laundry_service', 'iron', 'dry_cleaning', 'beach_access',
'casino', 'golf_course', 'hot_tub', 'outdoor_grill', 'fire_extinguisher', 'security', 'first_aid', 'medical_services',
'king_bed', 'bathtub', 'shower', 'bed', 'crib', 'deck', 'balcony', 'living', 'yard', 'water', 'electric_car',
'camera_outdoor', 'sports_tennis', 'sports_esports', 'mosque', 'storefront', 'directions_car'
];
$currentIcon = isset($item) && $item->icon ? $item->icon : '';
if($currentIcon && !in_array($currentIcon, $materialIcons)) {
$materialIcons[] = $currentIcon;
}
@endphp
{!! Form::label('title', __('الاسم') . ':', ['class' => 'font-weight-bold text-dark']) !!}
{!! Form::text('title', null, ['class' => 'form-control', 'maxlength' => 255, 'placeholder' => 'أدخل الاسم...']) !!}
{!! Form::label('icon', __('الأيقونة') . ':', ['class' => 'font-weight-bold text-dark']) !!}
اختر أيقونة...
@foreach($materialIcons as $icon)
{{ $icon }}
@endforeach
اختر أيقونة من قائمة Google Material Icons.
{!! Form::label('property_types', __('أنواع العقارات المتاح لها') . ':', ['class' => 'font-weight-bold text-dark']) !!}
@foreach($propertyTypes as $type)
@php
$selected = isset($item) && $item->propertyTypes->contains('id', $type->id) ? 'selected' : '';
@endphp
{{ $type->name_ar }} ({{ $type->name_en }})
@endforeach
اختر أنواع العقارات التي ترغب بظهور هذا العنصر ضمنها أثناء إضافة عقار جديد.
{!! Form::label('state_id', __('الحالة') . ':', ['class' => 'font-weight-bold text-dark d-block mb-2']) !!}
{!! Form::checkbox('state_id', 1, (!isset($item) || $item->state_id == 1) ? true : false) !!}
{{ (!isset($item) || $item->state_id == 1) ? 'مفعل' : 'غير مفعل' }}
تحديد ما إذا كان هذا العنصر سيظهر في التطبيق أم لا.
{!! Form::hidden('created_on', date('Y-m-d H:i:s')) !!}
{!! Form::hidden('created_by_id', auth()->id() ?? 1) !!}
@push('third_party_scripts')
@endpush