HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/dev-beg.teky.com.co/resources/views/formFields/list.blade.php
@extends('layouts.master')
@section('page-css')
<link rel="stylesheet" href="{{ asset('assets/styles/vendor/datatables.min.css') }}">
@endsection
@section('main-content')
<div class="breadcrumb">
    <h1> @lang('form_fields')</h1>
    @can('formField_create')
    <a class="nav-item-hold button_header" href="{{ route('form_fields.create', ['form_id' => Request()->form_id]) }}"
        data-toggle="tooltip" data-placement="top" title="@lang('create_form_field')">
        <i class="nav-icon i-Add"></i>
    </a>
    @endcan
</div>
<div class="separator-breadcrumb border-top"></div>
<section class="contact-list">
    <div class="row">
        <div class="col-md-12 mb-4">
            <div class="card text-left">
                <div class="card-body">
                    <div class="table-responsive">
                        <table id="table-list" class="display table " style="width:100%">
                            <thead>
                                <tr>
                                    <th>@lang('form')</th>
                                    <th>@lang('field')</th>
                                    <th>@lang('status')</th>
                                    <th>@lang('actions')</th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach ($formFields as $formField)
                                <tr>
                                    <td>{{ $formField->form->name }}</td>
                                    <td>{{ $formField->field->name }}</td>
                                    <td>
                                        <label class="switch switch-success mr-3">
                                            <input type="checkbox" {{ $formField->active == 1 ? 'checked' : '' }}
                                                value="{{ $formField->active }}"
                                                id="checkbox{{ $formField->form_id }}_{{ $formField->field_id }}"
                                                onClick="checkBoxStatus({{ $formField->form_id }}, {{ $formField->field_id }})">
                                            <span class="slider"></span>
                                        </label>
                                    </td>
                                    <td>
                                        @can('log_show')
                                        <a href="{{ route('showByRegistry', ['registry_id' => $formField->form_id, 'module_name' => 'form_fields']) }}"
                                            class="ul-link-action text-info" data-toggle="tooltip" data-placement="top"
                                            title="@lang('logs')">
                                            <i class="i-Receipt-3"></i>
                                        </a>
                                        @endcan
                                    </td>
                                </tr>
                                @endforeach
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
@endsection

@section('page-js')
<script src="{{ asset('assets/js/vendor/datatables.min.js') }}"></script>
<script src="{{ asset('assets/js/tooltip.script.js') }}"></script>
<script src="{{ asset('js/views/formFields.js') }}"></script>
@if (env('APP_LANGUAGE') == "es")
<script>
    $("#table-list").DataTable({
        order: [],
        language: {
            url: "https://cdn.datatables.net/plug-ins/1.10.19/i18n/Spanish.json"
        }
    });
</script>
@else
<script>
    $('#table-list').DataTable({
        order: [],
    });
</script>
@endif
@endsection