@extends("layout") @section("content")
@if (Session::get('success'))
{{ Session::get('success') }}
@elseif (Session::get('fail'))
{{ Session::get('fail') }}
@endif @if ( $user['active'] )
My Information {{ Form::open(array('url' => 'ta/profile', 'method'=>'put', 'role' =>"form", 'files' => true)) }}
{{ Form::label('picture', 'Image') }}
{{ $ta->name }}
Browse…
{{ Form::label('name', 'Name') }} {{ Form::text('name', $ta->name, array("class" => "form-control") ) }}
{{ Form::label('description', 'Description') }} {{ Form::textarea('description', $ta->description, array("class" => "form-control") ) }}
{{ Form::label('graduate', 'Program') }} {{ Form::select('graduate', array('0' => 'Undergraduate', '1' => 'Graduate'), $ta->graduate, array('class' => 'form-control') ) }}
{{ Form::label('year', 'Year') }}
{{ Form::label('wanted_hours', 'Hours Wanted') }}
{{ Form::close() }}
@endif
@if ($user['active']) {{ Form::open(array('url' => 'ta/profile', 'role' => 'form', 'method'=>'delete')) }} {{ Form::close() }} @else {{ Form::open(array('url' => 'ta/profile', 'role' => 'form')) }} {{ Form::close() }} @endif
{{ HTML::script('js/ta-profile.js') }} @stop