@extends('layouts.content') @section('content')

For Approval | {{ $option }}


{!! Form::model($travel, ['url' => '', 'autocomplete' => 'off']) !!}


@foreach($travel->passengers as $user) @endforeach


@foreach($travel->files as $document) @endforeach


  (@if(in_array('1', $funds))@else   @endif) General Fund (@if(in_array('2', $funds))@else   @endif) Project Funds (@if(in_array('3', $funds))@else   @endif) Others
@foreach($expenses as $key => $expense) @if($key == 0) @elseif($key == 3) @endif @endforeach
Actual
Per Diem
{!! $expense->e_name !!} @foreach($travel->expenses as $ex) @if($ex->pivot->f_id == 1 && $ex->e_id == $expense->e_id) @endif @endforeach   @foreach($travel->expenses as $ex) @if($ex->pivot->f_id == 2 && $ex->e_id == $expense->e_id) @endif @endforeach   @foreach($travel->expenses as $ex) @if($ex->pivot->f_id == 3 && $ex->e_id == $expense->e_id) {!! $ex->pivot->tfe_others !!} @endif @endforeach  

{!! Form::close() !!}
Comments
{!! Form::open(['url' => 'approval/save/'.$id, 'autocomplete' => 'off']) !!}
{!! Form::textarea('tc_comment', NULL, ['class' => 'form-control', 'placeholder' => 'Leave your comments here', 'size' => '10x5']) !!}
{!! Form::button('check', ['class' => 'btn btn-primary btn-fill text-center', 'name' => 'action', 'value' => '1', 'title' => 'Approve', 'type' => 'submit']) !!} {!! Form::button('clear', ['class' => 'btn btn-danger btn-fill text-center', 'name' => 'action', 'value' => '0', 'title' => 'Disapprove', 'type' => 'submit']) !!}
{!! Form::close() !!}
@stop