@extends('layouts.app')

@section('title', 'Bitacora Diaria')
@section('breadcrumb')
    <li class="active">Bitacora Diaria</li>
@endsection
@section('styles')
    <style>
    </style>
@endsection
@section('content')

    <div class="row">
        <div class="col-md-12">
            <!-- Profile Image -->
            <div class="box box-primary">
                <div class="box-body">
                    <h3 class="text-center">HOSPITAL REGIONAL UNIVERSITARIO</h3>
                    <h5 class="text-center">SERVICIO DE URGENCIAS</h5>
                    <h6 class="text-center">BITACORA DIARIA</h6>
                    <p class="text-center">{{date('d-m-Y')}}</p>

                    <table style="font-size: 12px;" class="table table-hover table-bordered table-striped">
                        <thead>
                        <tr>
                            <th class="text-center col-sm-1">SERVICIO</th>
                            <th class="text-center col-sm-1">CAMA</th>
                            <th class="text-center col-sm-3">NOMBRE</th>
                            <th class="text-center col-sm-1">EDAD</th>
                            <th class="text-center col-sm-1">E/H</th>
                            <th class="text-center col-sm-5">DIAGNÓSTICO</th>
                        </tr>
                        </thead>
                        <tbody>
                        @foreach($registros as $registro)
                            <tr>
                                <td class="text-center">{{utf8_decode($registro->servicio)}}</td>
                                <td class="text-center">{{$registro->cama}}</td>
                                <td class="text-center">{{utf8_decode($registro->nombre)}}</td>
                                <td class="text-center">{{utf8_decode($registro->edad)}}</td>
                                <td class="text-center">{{$registro->he}}</td>
                                <td class="text-center">{{utf8_decode($registro->diagnosticomedico)}}</td>
                            </tr>
                        @endforeach
                        </tbody>
                    </table>

                </div>

                <div class="box-footer">
                    <div class="col-sm-12">
                        <p class="text-center">
                            <a href="#" onclick="window.print()" class="btn btn-primary btn-sm">Imprimir</a>
                            <a target="_blank" href="{{url('bitacora/excel')}}" class="btn btn-primary btn-sm">Excel</a>
                        </p>
                    </div>
                </div>

            </div>

        </div>
    </div>
@endsection