@extends('layouts.app') @section('styles') @endsection @section('content')

{{ __('Edit Algorithm') }}: {{ $algorithm->name }}

@if(session('success')) @endif
{{ __('Algorithm Details') }}
@csrf @method('PUT')
@include('components.translatable-input', [ 'name' => 'name', 'type' => 'text', 'model' => $algorithm, 'modelType' => 'algorithm', 'modelId' => $algorithm->id, 'required' => true ])
@include('components.translatable-input', [ 'name' => 'text', 'type' => 'textarea', 'model' => $algorithm, 'modelType' => 'algorithm', 'modelId' => $algorithm->id, 'rows' => 4 ])
is_summary ? 'checked' : '' }}>
{{ __('Conditions') }}

{{ __('All conditions must be true for the feedback to be shown.') }}

@if($conditions->count() > 0) @foreach($conditions as $condition) @endforeach
{{ __('Type') }} {{ __('Details') }}
{{ $condition->type_num }} {{ $condition->getDescription() }}
@csrf @method('DELETE')
@else

{{ __('No conditions yet. Without conditions, this feedback will always be shown.') }}

@endif
{{ __('Add Condition') }}
@csrf
@endsection @push('scripts') @endpush