@extends('layouts.master') @section('style') @stop @section('content')
@include('partials.message')
{{ trans('ui.windows.names') }}
@if(Auth::user() -> can(['create-windows'])) @endif @foreach($sucursales as $key => $sucursal)
Sucursal {{ $sucursal -> nombre }}
@if(Auth::user()->can(['update-windows', 'delete-windows'])) @endif @foreach($sucursal -> ventanillas() -> orderBy('nombre','asc') -> get() as $ventanilla) @if(strlen($ventanilla->nombre) > 10) @else @endif @if(Auth::user()->can(['update-branches', 'delete-branches'])) @endif @endforeach
{{ trans('ui.windows.name') }}{{ trans('ui.windows.operation_label') }}
{{ str_limit($ventanilla->nombre,10) }}{{ $ventanilla->nombre }}

@if(Auth::user()->can('update-branches')) @endif @if(Auth::user()->can('delete-branches')) {!! Form::open(['url' => 'ventanilla/'. $ventanilla->id, 'method' => 'delete','style'=>'display:inline-block;']) !!} {!! Form::close() !!} @endif

@endforeach
{{--AQUI EMPIEZA--}} {{--AQUI TERMINA--}}
@stop @section('script') @stop