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