File: /var/www/vhost/disk-apps/demo-telemedicina.teky.com.co/resources/views/insurances/main.blade.php
@extends('layouts.head') @section('content')
<h2>{{ __("messages.insurances.main_title") }}</h2>
<form method="POST" action="{{ url('insurances') }}">
{{ csrf_field() }}
<div class="form-group">
<label for="exampleFormControlInput1">{{ __("messages.insurances.name") }}</label>
<input type="text" class="form-control" name="name" placeholder="{{ __('messages.insurances.name') }}..."
required />
</div>
<div class="form-group">
<label for="exampleFormControlInput1">{{ __("messages.insurances.rate") }}</label>
<input type="number" class="form-control" name="rate" placeholder="{{ __('messages.insurances.rate') }}..."
required />
</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.insurances.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.insurances.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.insurances.table.col2") }}
</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1"
aria-label="Browser: activate to sort column ascending">
{{ __("messages.insurances.table.col5") }}
</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1"
aria-label="Engine version: activate to sort column ascending">
{{ __("messages.insurances.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.insurances.table.col4") }}
</th>
</tr>
</thead>
<tbody>
@foreach($insurances as $c)
<tr>
<td>{{$c->id}}</td>
<td>{{$c->name}}</td>
<td>{{$c->rate}}</td>
<td>
<div class="switch">
<label>
@if($c->active == 0)
<div class="checkbox checbox-switch switch-success">
<label>
{{ __("messages.insurances.no") }}
<input type="checkbox" class="chkInsurances" data-id="{{$c->id}}" id="Checkactivo"
name="Checkactivo" />
<span></span>
{{ __("messages.insurances.yes") }}
</label>
</div>
@else
<div class="checkbox checbox-switch switch-success">
<label>
{{ __("messages.insurances.no") }}
<input type="checkbox" class="chkInsurances" data-id="{{$c->id}}" id="Checkactivo"
name="Checkactivo" checked="" />
<span></span>
{{ __("messages.insurances.yes") }}
</label>
</div>
@endif
</label>
</div>
</td>
<td style="font-size: 16px;">
<a href="{{ url('insurances/' . $c->id . '/edit') }}" style="color:black;">
<i class="fa fa-pencil iconMini editarPedido" style="cursor:pointer;"
title="{{ __('messages.insurances.btn_edit') }}"></i>
</a>
<a href="#" onclick="deleteRegister({{$c->id}}, 'insurances')" 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/insurances/insurances.js') }}"></script>
<script src="{{ asset('js/delete_register.js') }}"></script>
@endsection