@php $VerEditor = auth()->user()->can('Grupos - Visor') || auth()->user()->can('Grupos - Editor') @endphp @if($VerEditor) @extends('layouts.app') @section('tituloModulo') {{ "GRUPOS" }} @endsection @section('contenido')
NOMBRE | CARRERA | LOCALIDAD | FECHA DE INICIO | DIAS DE ASISTENCIA | HORA DE ENTRADA | HORA DE SALIDA | OBSERVACIONES | ESTATUS | @can('Grupos - Editor')ACCIÓN | @endcan
---|---|---|---|---|---|---|---|---|---|
{{ $item->nombre_grup }} | {{ $item->carrera_grup }} | {{ $item->localidad_grup }} | @if($item->inicio_grup) {{ \Carbon\Carbon::parse($item->inicio_grup)->format('d/m/Y') }} @endif |
@if($item->dias_grup)
@php
$dias = json_decode($item->dias_grup, true);
if (is_array($dias)) {
echo '
|
@if($item->horario_inicio_grup) {{ \Carbon\Carbon::parse($item->horario_inicio_grup)->format('h:i A') }} @endif | @if($item->horario_termino_grup) {{ \Carbon\Carbon::parse($item->horario_termino_grup)->format('h:i A') }} @endif | {{ $item->obs_grup }} | @if($item->estatus_grup == 'Activo') {{ $item->estatus_grup }} @endif @if($item->estatus_grup == 'Inactivo') {{ $item->estatus_grup }} @endif | @can('Grupos - Editor')
@if ($item->estatus_grup == 'Inactivo')
@else
@endif
|
@endcan