@extends('agency.layouts.app') @section('title', $definition->name) @section('page_title', $definition->name) @php $breadcrumbs = [ ['title' => 'Dashboard', 'url' => route('agency.dashboard')], ['title' => 'Tanımlar', 'url' => route('agency.definitions.index')], ['title' => $definition->definitionType->display_name, 'url' => route('agency.definitions.index', ['type' => $definition->definition_type_id])], ['title' => $definition->name, 'url' => ''] ]; @endphp @push('styles') @endpush @section('content')
@if($definition->image) {{ $definition->name }} @else
@endif
{{ $definition->definitionType->display_name }}

{{ $definition->name }}

@if($definition->description)

{{ $definition->description }}

@endif
{{ $definition->is_active ? 'Aktif' : 'Pasif' }} @if($definition->is_featured) Öne Çıkan @endif
Düzenle
@if($definition->values->count() > 0)

{{ $definition->definitionType->display_name }} Özellikleri

@foreach($definition->values as $value)
{{ $value->definitionAttribute->display_name }}
@if($value->definitionAttribute->field_type === 'boolean') {{ $value->value ? 'Evet' : 'Hayır' }} @elseif($value->definitionAttribute->field_type === 'date' && $value->value) {{ \Carbon\Carbon::parse($value->value)->format('d.m.Y') }} @elseif($value->definitionAttribute->field_type === 'number' && is_numeric($value->value)) {{ number_format($value->value, 2) }} @else {{ $value->formatted_value }} @endif
@endforeach
@else
Özellik Bulunmuyor

Bu tanım için henüz özellik tanımlanmamış.

@endif @if($definition->description)

Detaylı Açıklama

{{ $definition->description }}

@endif
İşlemler
Düzenle

Bilgiler
Kategori: {{ $definition->definitionType->display_name }}
Durum: {{ $definition->is_active ? 'Aktif' : 'Pasif' }}
@if($definition->is_featured)
Öne Çıkan: Evet
@endif
Sıralama: {{ $definition->sort_order }}
Oluşturulma: {{ $definition->created_at->format('d.m.Y H:i') }}
@if($definition->updated_at != $definition->created_at)
Güncelleme: {{ $definition->updated_at->format('d.m.Y H:i') }}
@endif @if($definition->creator)
Oluşturan: {{ $definition->creator->full_name }}
@endif @if($definition->updater && $definition->updated_at != $definition->created_at)
Güncelleyen: {{ $definition->updater->full_name }}
@endif
@endsection @push('scripts') @endpush