{{-- Extends layout --}} @extends('front.layouts.app') {{-- Content --}} @section('content')
@if (is_specie_admin(Auth::user()))
@else @endif @csrf @method('POST')
@component('front.components.select_recursive', [ 'label' => __('Kategori'), 'name' => 'determination_category_id', 'options' => $categories, 'option_id' => 'id', 'option_value' => 'title', 'selected_value' => old('determination_category_id') ? old('determination_category_id') : $determination->determination_category_id, 'suffix' => __('Tanımladığını canlı türüne ilişkin kategoriyi seçiniz. Sadece bir seçim yapabilirsiniz.'), 'required' => 'REQUIRED', ]) @endcomponent @component('front.components.determination_type_select', [ 'label' => __('Kayıt tipi'), 'name' => 'determination_type_id', 'options' => $types, 'option_id' => 'id', 'option_value' => 'title', 'selected_value' => old('determination_type_id') ? old('determination_type_id') : $determination->determination_type_id, 'placeholder' => __('Lütfen tespit tipi seçiniz'), 'required' => 'REQUIRED', ]) @endcomponent @component('front.components.determination_specie_guess', [ 'label' => __('Canlı Türü (Bilimsel İsim)'), 'name' => 'specie_guess', 'value' => old('specie_guess') ? old('specie_guess') : null, 'placeholder' => __('Lütfen tür tanımı giriniz'), 'suffix' => __(' Türü tanımlamak için kutuya tür ismini giriniz. Tanımladığnız tür bir uzman tarafından onaylandığı taktirde kesinlik kazanacaktır. '), ]) @endcomponent @component('front.components.images_upload', [ 'label' => __(' Canlının resimlerini giriniz..'), 'suffix' => __('Yüklemek istediğiniz fotoğraf en fazla 1.5 MB olmalıdır. İlk seçtiğiniz resim asıl resim, diğerleri ise tespitinizin destekleyici resimleri olarak kaydedilecektir. Yüklediğiniz resimlerin sırasını ok simgelerine tıklayarak değiştirebilirsiniz.'), ]) @endcomponent @component('front.components.date', [ 'label' => __('Tarih'), 'name' => 'seen_at', 'value' => old('seen_at') ? old('seen_at') : $determination->seen_at, 'placeholder' => __('Tespit edilen tarih'), 'suffix' => __('DİKKAT...Tespitinizin tanımlanabilmesi için sağdaki tarih seçiçiyi kullanınız...'), 'required' => 'REQUIRED', ]) @endcomponent @component('front.components.select', [ 'label' => __('Ekipman'), 'name' => 'determination_equipment_id', 'options' => $equipments->where('type', App\Models\DeterminationEquipment::GOVDE), 'option_id' => 'id', 'option_value' => 'title', 'selected_value' => old('determination_equipment_id') ? old('determination_equipment_id') : $determination->determination_equipment_id, 'suffix' => __('Ekipmanın gövde modelini belirtin.. '), 'required' => 'REQUIRED', ]) @endcomponent @component('front.components.select', [ 'label' => __('Ekipman'), 'name' => 'determination_equipment_lens_id', 'options' => $equipments->where('type', App\Models\DeterminationEquipment::LENS), 'option_id' => 'id', 'option_value' => 'title', 'selected_value' => old('determination_equipment_lens_id') ? old('determination_equipment_lens_id') : $determination->determination_equipment_lens_id, 'suffix' => __('Ekipmanın lens modelini belirtin.. '), 'required' => 'REQUIRED', ]) @endcomponent @component('front.components.input', [ 'label' => __('Başlık'), 'name' => 'title', 'value' => old('title') ? old('title') : $determination->title, 'placeholder' => __('Lütfen başlık giriniz'), 'suffix' => __('Tespitin sitede hangi isimle görüntülenmesini istiyorsunuz? '), 'required' => 'REQUIRED', ]) @endcomponent @component('front.components.textarea', [ 'label' => __('Açıklama'), 'name' => 'text', 'value' => old('text') ? old('text') : $determination->text, 'placeholder' => 'Lütfen açıklama giriniz', 'class' => 'editor', 'suffix' => __('Lütfen gözlem detaylarını giriniz...'), ]) @endcomponent @component('front.components.select', [ 'label' => __('Ülke'), 'name' => 'determination_country_id', 'options' => $countries, 'option_id' => 'id', 'option_value' => 'title', 'selected_value' => old('determination_country_id') ? old('determination_country_id') : $determination->determination_country_id, 'suffix' => __('Lütfen bir ülke seçiniz...'), 'required' => 'REQUIRED', ]) @endcomponent @component('front.components.select', [ 'label' => __('Şehir'), 'name' => 'determination_city_id', 'options' => $cities, 'option_id' => 'id', 'option_value' => 'title', 'selected_value' => old('determination_city_id') ? old('determination_city_id') : $determination->determination_city_id, 'suffix' => __('Lütfen bir şehir seçiniz...'), 'required' => 'REQUIRED', ]) @endcomponent @component('front.components.determination_map_locations', ['determination' => $determination]) @endcomponent @if (is_specie_admin(Auth::user())) @component('admin.components.select', [ 'label' => __('Status'), 'name' => 'determination_status_id', 'options' => $statuses, 'option_id' => 'id', 'option_value' => 'title', 'selected_value' => $determination->determination_status_id, ]) @endcomponent @component('admin.components.determination_specie_guess', ['record' => $determination]) @endcomponent @component('admin.components.determination_photos', ['determination' => $determination]) @endcomponent @component('admin.components.select', [ 'label' => __('Fotoğraf Galerilerinde Gösterilsin Mi?'), 'name' => 'photo_gallery', 'options' => [["id"=>0,"title"=>__("Hayır")],["id"=>1,"title"=>__("Evet")]], 'option_id' => 'id', 'option_value' => 'title', 'selected_value' => $determination->photo_gallery, ]) @endcomponent @endif
@endsection @section('styles') @endsection @section('scripts') {{-- Google Maps --}} @component('admin.components.determination_specie_js') @endcomponent @endsection