@extends('app') @section('content')
{!! Form::open([ 'action' => 'Executive\LiabilitiesController@index', 'method' => 'GET', 'class' => 'form-horizontal' ])!!}
Próximos Compromisos
{!!Form::label('proclient_id','Cliente',['class'=>'col-sm-2 control-label'])!!}
{!!Form::select('proclient_id',[null=>'Todos mis clientes']+Auth::user()->proclients()->orderBy('a_paterno','id')->get()->lists('fullname','id')->all(),Input::get('proclient_id'),['class'=>'form-control'])!!}
{!!Form::label('from','Desde',['class'=>'col-sm-2 control-label'])!!}
{!!Form::label('to','Hasta',['class'=>'col-sm-2 control-label'])!!}
{!! Form::close() !!}
@forelse($appointments as $appointment)

{{$appointment->datetime->format('Y-m-d H:i')}} {{$appointment->client->fullname}}

{{$appointment->comments}}

@if($appointment->location)

Ubicación: {{$appointment->location}}

@endif

ESTATUS: {{ $appointment->client->status }}

@empty
No hay compromisos que mostrar
@endforelse
{!! $appointments->appends(Input::all())->render() !!}
@stop @section('script') @stop