@section('page_title') OSAA - Event Management & Ticket Reports @stop @section('page_sub_title') OSAA Playoff Event Management & Ticket Reports @stop @section('scripts') @parent @stop @section('jquery_init') if(!window.console) { window.console = { log: $.noop, group: $.noop, groupEnd: $.noop }; } // Make this script play well with IE8 if (typeof String.prototype.trim !== 'function') { String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); } } // 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); }) }); $('.tabs').tabs(); // Table row highlighter function colorRows () { $('table').each(function () { var i = 0; $('tbody tr', $(this)).each(function () { if (i % 2 == 1) { $(this).addClass('odd'); } else { $(this).removeClass('odd'); } i = i + 1; }); }); } colorRows(); /* * Close button */ $('.close_button') .button({'icons':{'primary':'ui-icon-circle-close'}}) .css({'font-size':'9pt', 'margin-left':'10px'}); /* * Form Behavior */ /* * Custom tooltip items */ $('[data-tooltip]').each(function () { var item = $(this); var help = item.attr('data-tooltip'); item.tooltip({'content' : help, 'items' : item}); }); $('table tbody tr').hover(function() { if (!$(this).hasClass('sport_total')) { $(this).addClass('ui-state-hover'); } }, function() { $(this).removeClass('ui-state-hover'); }); $('a[data-confirm]').on('click', function(event) { event.preventDefault(); var link = $(this); var text = link.attr('data-confirm'); var href = link.attr('href'); $('
') .appendTo('body') .dialog( { modal : true, draggable : true, resizable : false, height : 275, width : 450, title : 'Confirmation', buttons: [ { text : "Yes", 'class' : "float_left", icons : { primary : 'ui-icon-check'}, click : function() { $('
') .addClass('ui-widget-overlay ui-front') .appendTo('body'); $('
').appendTo('body') .css('width', '225px') .css('height', '170px') .css('text-align', 'center') .css('padding', '0.5em') .position({my : "center center", at : "center center", of : window}) .addClass('ui-dialog ui-widget ui-widget-content ui-corner-all ui-front') .html('
Initializing...

Please wait, this may take a while to process...
'); window.location.href = href; return true; } }, { text : "No", 'class' : "float_right", 'data-autofocus' : "true", icons : { primary : 'ui-icon-cancel'}, click : function() { // Close the dialog box $(this).dialog("close"); return false; } } ], open : function () { var dialog_object = $(this); var html = '
'; html += ''; html += text; html += '
'; dialog_object.html(html); $('.ui-dialog-buttonpane').css('padding', '0 0.5em').css('font-size', '9pt'); $('.ui-dialog-buttonpane .ui-dialog-buttonset').css('width', '100%'); $('[data-autofocus="true"]').focus(); }, close : function () { var dialog_object = $(this); $(dialog_object).remove(); } }); }); $('[data-action="mark-done"]').on('click', function(event) { event.preventDefault(); var link = $(this); link.blur(); var row = link.parents('tr'); var report_id = row.attr('data-report'); var school = row.attr('data-school'); var activity = row.attr('data-activity'); var activity_name = row.attr('data-activity-name'); var round = row.attr('data-round'); var division = row.attr('data-division'); var amount = $('td[data-amount]', row).attr('data-amount'); var expense = $('td[data-expense]', row).attr('data-expense'); var id_confirm = row.attr('data-id-confirm'); var is_other_expenses = $('td[data-expense]', row).is('[data-other-expenses]'); row.addClass('ui-state-error'); $('
') .appendTo('body') .dialog( { modal : true, draggable : true, resizable : false, height : 400, width : 550, title : 'Finish and Close This Report?', buttons: [ { text : "Finish", 'class' : "float_left", icons : { primary : 'ui-icon-check'}, click : function() { $('
') .addClass('ui-widget-overlay ui-front') .appendTo('body'); $('
').appendTo('body') .css('width', '225px') .css('height', '170px') .css('text-align', 'center') .css('padding', '0.5em') .position({my : "center center", at : "center center", of : window}) .addClass('ui-dialog ui-widget ui-widget-content ui-corner-all ui-front') .html('
Processing...

Please wait, this may take a while to process...
'); var url = "{{ url('/forms/ticket-report') }}/" + report_id + "/close"; var redirect = "{{ url('/forms/ticket-report/admin') }}?season={{ $info['season'] }}#" + activity; var data = { report_id : report_id }; // Submit the change var jqxhr = $.ajax( { type : 'POST', url : url, data : data, dataType : 'html' }) .done(function (data) { // Success if (data == 'success') { window.location.href = redirect; location.reload(); } else { alert ("There was an error saving changes.\n\nThis page will be reloaded."); window.location.href = redirect; location.reload(); } }) .fail(function (jqXHR, status, error) { var response = jqXHR.responseText; var errorData = $.parseJSON(response); //console.log(errorData); alert ("There was an error saving changes.\n\n" + errorData.error.message + "\n\nThis page will be reloaded."); window.location.href = redirect; location.reload(); }); } }, { text : "Cancel", 'class' : "float_right", 'data-autofocus' : "true", icons : { primary : 'ui-icon-cancel'}, click : function() { // Close the dialog box $(this).dialog("close"); return false; } } ], open : function () { var dialog_object = $(this); var html = '
'; html += ''; html += 'Are you sure you want to finish and close this ticket report? Please ensure the following information matches the submitted Event Management & Ticket Report form.

'; html += school + '
'; html += activity_name + ' ' + division + ' Round ' + round + '
'; html += 'ID # ' + id_confirm + '

'; html += 'Expense Total:' + expense + ''; if (is_other_expenses) { html += 'Verify Receipts'; } html += '
' html += '
Ticket Total:' + amount + '
'; html += '

'; html += '
Once you mark this ticket report form as finished, the form will appear on the school\'s page as closed and it is assumed the OSAA has mailed a check for any expenses to the host school.'; html += '
'; dialog_object.html(html); $('.ui-dialog-buttonpane').css('padding', '0 0.5em').css('font-size', '9pt'); $('.ui-dialog-buttonpane .ui-dialog-buttonset').css('width', '100%'); $('[data-autofocus="true"]').focus(); }, close : function () { row.removeClass('ui-state-error'); var dialog_object = $(this); $(dialog_object).remove(); } }); }); $('td a').on('click', function() { $(this).blur(); }); @stop @section('page_functions') Close @stop @section('main_content') {{-- Success Bar --}} @if (Session::has('success'))
{{ Session::get('success') }}
@endif
@foreach ($info['reports'] as $activity => $divisions)

{{ $info['school_year'] }}-{{ substr(intval($info['school_year']) + 1, 2, 2) }} {{ Helpers::getActivityName($activity) }}

@foreach ($divisions as $division => $rounds) @foreach ($rounds as $round => $reports) @foreach ($reports as $report)
Fatal error: Class 'Helpers' not found in /home/osaa/web_app/dev/app/views/ticket_report/admin_index.blade.php on line 563
Status Div. / Round Date Event Teams Gate Total Exp. Total Actions