@section('page_title') OSAA - Coop Application @stop @section('page_sub_title') Online Coop Application Form @stop @section('scripts') @parent @stop @section('jquery_init') // Table row highlighter function colorRows () { $('table').each(function () { var i = 0; $('tbody tr:visible', $(this)).each(function () { if (i % 2 == 0) { $(this).addClass('odd'); } else { $(this).removeClass('odd'); } i = i + 1; }); }); } colorRows(); // Success bar $('.success_bar').animate({ 'top' : 32, 'background-color' : 'rgba(176, 255, 190, 1.0)'}, 1600, 'easeOutQuad', function () { $(this).delay(6000).fadeOut(4000); $(this).hover(function () { $(this).stop(true).css('opacity', '1.0'); }, function () { $(this).fadeOut(4000); }) }); /* * Close button */ $('.close_button') .button({'icons':{'primary':'ui-icon-circle-close'}}) .css({'font-size':'9pt'}); /* * Help button */ $('.help_button') .button({'icons':{'primary':'ui-icon-help'}}) .css({'font-size':'9pt', 'margin-right':'10px'}); /* * Next button */ $('.next_button') .button({'icons':{'secondary':'ui-icon-play'}}) .css({'font-size':'8pt'}) .click(function () { var button = $(this); var school_id = $('#school').val(); window.location = "{{ url('/forms/coop-application/new') }}?school=" + school_id; }); $('.item') .hover(function () { $(this).addClass('item_hover'); }, function () { $(this).removeClass('item_hover'); }) .click(function() { window.location = '{{ url('/forms/coop-application') }}/' + $(this).attr('data-id') + '/edit', '_blank'; }); @stop @section('page_functions') Help Close @stop @section('main_content') {{-- Success Bar --}} @if (Session::has('success'))
{{ Session::get('success') }}
@endif
{{-- Show user's current coop applications --}}
@if (!Auth::user()->isOsaaUser())

My Coop Applications

@else

All Coop Applications

@endif
@if (count($info['my_applications']) < 1) There are no Coop Application forms linked to your account. @else @foreach ($info['my_applications'] as $form)
{{ Helpers::getActivityName($form->activity) }}
@if (Helpers::strEqual($form->status, 'WORK')) Not Submitted @elseif (Helpers::strEqual($form->status, 'SUBT')) Submitted to OSAA @elseif (Helpers::strEqual($form->status, 'DONE')) @if ($form->is_approved) Approved @else Denied @endif @else {{ $form->id }} @endif
{{ $form->status }}
{{ $form->udpated_at }}
{{ $form->getCoopName() }}
{{ $form->getCoopDuration() }} Years, {{ $form->starting_school_year }} - {{ $form->ending_school_year }}

Fatal error: Call to a member function getLeague() on a non-object in /home/osaa/web_app/dev/app/views/coop_form/index.blade.php on line 309