@extends('template.layoutAdmin', ['activeButton'=>'personal']) @section('title') {{ trans('turnos.tituloTurnos') }} @endsection @section('cabecera')

{{trans('turnos.turnosTrabajadores') }} {{ trans('turnos.mensajeAyuda') }}

@endsection @section('contenido')

{{ trans('turnos.listTurnosActivos') }}

@php $id = 1; @endphp @foreach ($activos as $item) @if ($item->salida == null) @php $id++; @endphp @endif @endforeach
# {{ trans('turnos.imagen') }} {{ trans('turnos.nombre') }} {{ trans('turnos.cargo') }} {{ trans('turnos.entrada') }} {{ trans('turnos.salida') }} {{ trans('turnos.horasTotal') }}

{{$id}}
@if ($item->trabajador->fotoPerfil <> "0") Usuario @else @if ($item->trabajador->idGenero == 9) Masculino @else Femenino @endif @endif
{{$item->trabajador->nombre}} {{$item->trabajador->apellido}}

@if($item->trabajador->funPerfil) @if($item->trabajador->funEmpladoCaja)
{{$item->trabajador->funPerfil->nombre}} - {{$item->trabajador->funEmpladoCaja->funCajaEmplado->nombre}}
@else @if($item->trabajador->funEmpleadoComanda)
{{$item->trabajador->funPerfil->nombre}} - {{$item->trabajador->funEmpleadoComanda->funComandaEmplado->nombre}}
@else
{{$item->trabajador->funPerfil->nombre}}
@endif @endif @endif

{{$item->entrada}}

{{ trans('turnos.proceso') }}

- -

{{ trans('turnos.listTurnosRegistro') }}

@if(request()->all() != null) @endif

@php $id = 1; @endphp @foreach ($turnos as $item) @if ($item->salida != null) @else @endif @php $id++; @endphp @endforeach
# {{ trans('turnos.imagen') }} {{ trans('turnos.nombre') }} {{ trans('turnos.cargo') }} {{ trans('turnos.entrada') }} {{ trans('turnos.salida') }} {{ trans('turnos.horasTotal') }}

{{$id}}
@if ($item->trabajador->fotoPerfil <> "0") Usuario @else @if ($item->trabajador->idGenero == 9) Masculino @else Femenino @endif @endif
{{$item->trabajador->nombre}} {{$item->trabajador->apellido}}

@if($item->trabajador->funPerfil) @if($item->trabajador->funEmpladoCaja)
{{$item->trabajador->funPerfil->nombre}} - {{$item->trabajador->funEmpladoCaja->funCajaEmplado->nombre}}
@else @if($item->trabajador->funEmpleadoComanda)
{{$item->trabajador->funPerfil->nombre}} - {{$item->trabajador->funEmpleadoComanda->funComandaEmplado->nombre}}
@else
{{$item->trabajador->funPerfil->nombre}}
@endif @endif @endif

{{$item->entrada}}

{{$item->salida}}

{{$item->restaHoras($item->entrada, $item->salida)}}

{{ trans('turnos.proceso') }}

- -
@endsection @section('js') @endsection