Please wait while the database checks for any missing addresses, this may take a while to process...
');
var form = $(this).parents('form');
var url = form.attr('action');
// Get a form check
var jqxhr = $.ajax(
{
type : 'GET',
url : url + '?' + form.serialize() + '&missing=1',
dataType : 'html'
})
.done(function (data)
{
$('[data-check]').remove();
$('')
.appendTo('body')
.dialog(
{
draggable : true,
resizable : false,
height : 280,
width : 600,
modal : true,
title : 'Missing Address Report',
open : function ()
{
var dialog_object = $(this);
var html = data;
dialog_object.html(html);
$('.close_button', dialog_object)
.button({'icons' : {'secondary' : 'ui-icon-circle-close'}})
.css({'font-size' : '9pt'})
.click(function(event)
{
event.preventDefault();
dialog_object.dialog('close');
})
.focus();
},
close : function ()
{
var dialog_object = $(this);
$(dialog_object).remove();
}
});
})
.fail(function (jqXHR, status, error)
{
var response = jqXHR.responseText;
var errorData = $.parseJSON(response);
//console.log(errorData);
alert("There was an error checking for missing addresses.\n\n" + errorData.error.message + "\n\nThis page will be reloaded.");
location.reload();
});
});
@stop
@section('page_functions')
Close
@stop
@section('main_content')
Team Sport Reimbursements for {{ Session::get('year') }}-{{ substr(intval(Session::get('year')) + 1, 2, 2) }}
Instructions
Use this form utility to calculate team sport reimbursements for OSAA State Championship teams on the brackets.
Select the Team Sport and Division from the respective drop-down lists.
Click the Missing Addresses button first to get a report of any contest location that's missing an address. Any missing address error must be resolved in order for the calculations to be processed correctly.
Click the Calculate button to calculate reimbursements.
{{-- Errors --}}
@if (Session::has('errors'))
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach