@section('title', 'View Component: ' . $data->title) @section('breadcrumbs') {{ Breadcrumbs::render('component-management.components.show', $data) }} @endsection @section('content')

{{ __('Component Info') }}

{{ __('Status') }}:
@if($data->is_active)
{{ __('Active') }}
@else
{{ __('Inactive') }}
@endif
{{ __('Component Key') }}:
{{ $data->key }}
{{ __('Sort Order') }}:
{{ $data->sort_order }}
{{ __('Component Path') }}:
{{ $data->component }}
@if($data->preview)
{{ __('Preview Image') }}:
{{ $data->preview }}
{{ $data->title }}
@endif
{{ __('Created At') }}:
{{ $data->created_at->format('Y-m-d H:i:s') }}
{{ __('Last Updated') }}:
{{ $data->updated_at->format('Y-m-d H:i:s') }}

{{ __('Actions') }}

{{ __('Edit Component') }}
@csrf
@csrf @method('DELETE')

{{ $data->title }}

{{ __('Inputs Configuration') }}:
{{ json_encode($data->inputs, JSON_PRETTY_PRINT) }}
{{ __('Input Validations') }}:
{{ json_encode($data->input_validations, JSON_PRETTY_PRINT) }}
@if($data->extra_data)
{{ __('Extra Data') }}:
{{ json_encode($data->extra_data, JSON_PRETTY_PRINT) }}
@endif
{{ __('Complete Configuration') }}:
{{ json_encode([
                            'title' => $data->title,
                            'preview' => $data->preview,
                            'component' => $data->component,
                            'inputs' => $data->inputs,
                            'inputValidations' => $data->input_validations,
                            ...(array)$data->extra_data
                        ], JSON_PRETTY_PRINT) }}
@push('scripts') @endpush @push('styles') @endpush