@extends(Auth::check() && Auth::user()->role->layout == 1 ? 'layouts.admin' : 'layouts.employee') @section('content')

Bloqueos

@include('alert.success') @if(Auth::user()->role->role_permission('create_events')) {{trans('general.nuevo')}} Bloqueo @endif

Lista de Bloqueos

@if(Auth::user()->role->role_permission('edit_events') || Auth::user()->role->role_permission('delete_events')) @endif @foreach($blocks as $block) @if( $block->reason == 'L') @elseif($block->reason == 'M') @elseif($block->reason == 'F') @endif @if(!empty($block->boat)) @else @endif @if(!empty($block->schedule)) @else @endif @if(Auth::user()->role->role_permission('edit_events') || Auth::user()->role->role_permission('delete_events')) @endif @endforeach
Fecha Razón Embarcación Schedule{{trans('general.accion')}}
{{ Carbon\Carbon::parse($block->day)->format('d/m/Y')}}LimpiezaMantenimientoFormación{{ $block->boat->name }}{{ $block->boat_id }}{{ $block->schedule->name }}
@if(Auth::user()->role->role_permission('delete_events')) @endif
@endsection