@extends("layout") @section("content")
@if (Session::get('success'))
{{ Session::get('success') }}
@endif

{{ $semester['now'] }} {{ $year['now'] }} @if (isset($semester['next'])) @endif

Hours Break Down
@for ($i = $current_week; $i > 0 ; $i--)

Week {{ $i }} : {{ date('M jS',strtotime($week_start) - (($current_week - $i) * 7 * 86400) ) }} - {{ date('M jS',strtotime($week_end) - (($current_week - $i) * 7 * 86400)) }} : {{ isset($shifts_per_week[$i]['submitted']) ? $shifts_total[$i] + $shifts_per_week[$i]['additional'] : $shifts_total[$i] }} hours

    @if ( $shifts_total[$i] > 0) @foreach ($shifts_per_week[$i]['shifts'] as $shift)
  • {{ date("l, M jS",strtotime($shift->date)) }} : {{ Number::toTime($shift->start) }} - {{ Number::toTime($shift->end) }} : {{ ($shift->end - $shift->start) / 100 }} hours
  • @endforeach @else
  • No Shifts
  • @endif
@endfor
Hours Summary
Total Hours Worked: {{ $hours['total'] }}
{{ HTML::script('js/time-conversion.js') }} {{ HTML::script('js/ta-hours.js') }} @stop