@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->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
@endsection
@push('scripts')
@endpush