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/demo-telemedicina.teky.com.co/resources/views/specialties/main.blade.php
@extends('layouts.head') @section('content')
<h2>{{ __("messages.specialties.main_title") }}</h2>
<form method="POST" action="{{ url('specialties') }}">
  {{ csrf_field() }}
  <div class="form-group">
    <label for="exampleFormControlInput1">{{ __("messages.specialties.name") }}</label>
    <input
      type="text"
      class="form-control"
      name="name"
      placeholder="{{ __('messages.specialties.name') }}..."
      required
    />
  </div>
  <div class="form-group">
    <label for="exampleFormControlInput1">Código Centro de Producción</label>
    <input
      type="text"
      class="form-control"
      name="code_cp"
      placeholder="Código Centro de Producción..."
      required
    />
  </div>
  <div class="form-group">
    <label for="exampleFormControlInput1">{{ __("messages.specialties.sex_allow") }}</label>
    <select class="form-control" name="sex_allowed" id="sex_allowed">
      <option value="3" selected="selected">{{ __("messages.specialties.female_male") }}</option>
      <option value="2">{{ __("messages.specialties.female") }}</option>
      <option value="1">{{ __("messages.specialties.male") }}</option>
    </select>
  </div>
  <div class="box-header">
    <button
      type="submit"
      class="btn btn-success pull-right"
      style="margin-right:5px; background-color:#f79708; border-color:#f79708;"
    >
      <i class="fa fa-plus" style="margin-right:4px;"></i
      >{{ __("messages.specialties.btn_create") }}
    </button>
  </div>
  <br />
</form>
{{-- Table --}}
<div class="box">
  <div class="box-body table-responsive no-padding" style="padding: 10px !important;">
    <table
      id="example2"
      class="table table-bordered table-hover dataTable"
      role="grid"
      aria-describedby="example2_info"
    >
      <thead>
        <tr role="row">
          <th
            class="sorting"
            tabindex="0"
            aria-controls="example2"
            rowspan="1"
            colspan="1"
            aria-label="Browser: activate to sort column ascending"
          >
            {{ __("messages.specialties.table.col1") }}
          </th>
          <th
            class="sorting"
            tabindex="0"
            aria-controls="example2"
            rowspan="1"
            colspan="1"
            aria-label="Platform(s): activate to sort column ascending"
          >
            {{ __("messages.specialties.table.col2") }}
          </th>
          <th
            class="sorting"
            tabindex="0"
            aria-controls="example2"
            rowspan="1"
            colspan="1"
            aria-label="Platform(s): activate to sort column ascending"
          >
            {{ __("messages.specialties.table.col3") }}
          </th>
          <th
            class="sorting"
            tabindex="0"
            aria-controls="example2"
            rowspan="1"
            colspan="1"
            aria-label="Engine version: activate to sort column ascending"
          >
            {{ __("messages.specialties.table.col4") }}
          </th>
          <th
            class="sorting"
            tabindex="0"
            aria-controls="example2"
            rowspan="1"
            colspan="1"
            aria-label="Engine version: activate to sort column ascending"
          >
            {{ __("messages.specialties.table.col5") }}
          </th>
        </tr>
      </thead>
      <tbody>
        @foreach($specialties as $s)
        <tr>
          <td>{{$s->id}}</td>
          <td>{{$s->name}}</td>
          @if ($s->m && $s->f)
          <td>{{ __("messages.specialties.female_male") }}</td>
          @endif @if ($s->m && !$s->f)
          <td>{{ __("messages.specialties.male") }}</td>
          @endif @if (!$s->m && $s->f)
          <td>{{ __("messages.specialties.female") }}</td>
          @endif
          <td>
            <div class="switch">
              <label>
                @if($s->active == 0)
                <div class="checkbox checbox-switch switch-success">
                  <label>
                    {{ __("messages.specialties.no") }}
                    <input
                      type="checkbox"
                      class="chkspecialties"
                      data-id="{{$s->id}}"
                      id="Checkactivo"
                      name="Checkactivo"
                    />
                    <span></span>
                    {{ __("messages.specialties.yes") }}
                  </label>
                </div>
                @else
                <div class="checkbox checbox-switch switch-success">
                  <label>
                    {{ __("messages.specialties.no") }}
                    <input
                      type="checkbox"
                      class="chkspecialties"
                      data-id="{{$s->id}}"
                      id="Checkactivo"
                      name="Checkactivo"
                      checked=""
                    />
                    <span></span>
                    {{ __("messages.specialties.yes") }}
                  </label>
                </div>
                @endif
              </label>
            </div>
          </td>

          <td style="font-size: 16px;">
            <a href="{{ url('specialties/' . $s->id . '/edit') }}" style="color:black;">
              <i
                class="fa fa-pencil iconMini editarPedido"
                style="cursor:pointer;"
                title="Editar"
              ></i>
            </a>
            <a href="#" onclick="deleteRegister({{$s->id}}, 'specialties')" style="color:black;">
              <i class="fa fa-trash iconMini " style="cursor:pointer;" title="Eliminar"></i>
            </a>
          </td>
        </tr>
        @endforeach
      </tbody>
    </table>
  </div>
  <!-- /.box-body -->
</div>
<script src="{{ asset('js/specialties/specialties.js') }}"></script>
<script src="{{ asset('js/delete_register.js') }}"></script>
@endsection