<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html"; charset=utf-8" />
        <link href="{{ asset('bundles/DorcasTabitha/css/printable.css') }}" type="text/css" rel="stylesheet" />
        <script src="{{ asset('bundles/DorcasTabitha/js/js/jquery-1.7.2.min.js') }}" type="text/javascript"></script>
        <script>    
        $(document).ready(function(){ 
            $("#print_req").click(function(){ 
                $("#print_req").css("display","none"); 
                window.print();   
            }); 
        });

        function displayemail()
        {
            var textareaid = document.getElementById('emailList');
            if ( textareaid.style.display=='none')
            {
                textareaid.style.display='block';
            }
            else
            {
                textareaid.style.display='none';
            }

        }

        </script>

    </head>
    <body style="padding: 20px; padding-top:40px;"> 
        <section>

        <div style="position:absolute; top:10px; left: 10px;">
            <input type="button" value="Print" id="print_req" />
        </div>

    <div id="referral_master" style=" padding: 40px; ">


        <h2 style="line-height: 8px;"><center>Clients Referred To Agencies</center></h2>
        <h4 style="line-height: 8px;"><center>From {{ start }} to {{ end }}</center></h4></center>
        <h5 style="line-height: 4px;"><center> Report Date: &nbsp;{{ "now"|date("m/d/Y") }}</center></h5>
        <h5 style="line-height: 1px;"><center> Provided For {{ app.user.firstname }} {{ app.user.lastname }}</center></h5>


        {% set dorcasprograms = ['The Benefit Bank', 'Budget Counseling', 'Childcare Scholarship',  'Jobs for Life at Dorcas', 'JobLink',
            'Margaret Keller Scholarship', 'Dorcas Resource Office', 'Other Dorcas Programs' ] %}
        <br /><h5>Dorcas Programs</h5> 
        {% set i = 0 %}
        {% for dorcasprogram in dorcasprograms %}          
            <div id="dorcas_programs" style="padding-left:40px;">
                {% render 'DorcasTabithaBundle:Print:referredToSelect' with { 'agencyNumber': i, 'agencyName': dorcasprogram } %}
                {% set i = i + 1 %}
            </div>
        {% endfor %}


        {% set crisisprograms = ['Catholic Parish Outreach', 'Resources for Seniors', 'Salvation Army',  'Triangle Family Services', 
            'Wake County Human Services', 'Western Wake Crisis Ministry', 'With Love from Jesus', 'Other Crisis Assistance Programs' ] %}
        <br /><h5>Crisis Assistance Programs</h5> 
        {% for crisisprogram in crisisprograms %}          
            <div id="dorcas_programs" style="padding-left:40px;">
                {% render 'DorcasTabithaBundle:Print:referredToSelect' with { 'agencyNumber': i, 'agencyName': crisisprogram } %}
                {% set i = i + 1 %}
            </div>
        {% endfor %}

        {% set housing = ['Cornerstone', 'Raleigh Rescue Mission', 'Salvation Army',
         'South Wilmington Shelter', 
        'Wake Interfaith Hospitality Network', 'Interact', 'Carying Place', 'Other Housing Program' ] %}

        <br /><h5>Housing Programs</h5> 
        {% for house in housing %}          
            <div id="dorcas_programs" style="padding-left:40px;">
                {% render 'DorcasTabithaBundle:Print:referredToSelect' with { 'agencyNumber': i, 'agencyName': house } %}
                {% set i = i + 1 %}
            </div>
        {% endfor %}


        {% set employements = ['Jobs for Life', 'Job Link ', 'Step Up Ministry', 'Other Employment Program' ] %}

        <br /><h5>Employment</h5> 
        {% for employement in employements %}          
            <div id="dorcas_programs" style="padding-left:40px;">
                {% render 'DorcasTabithaBundle:Print:referredToSelect' with { 'agencyNumber': i, 'agencyName': employement } %}
                {% set i = i + 1 %}
            </div>
        {% endfor %}

        {% set educations = ['English as a Second Language', 'GED Classes', 'Wake Tech Classes', 'Parenting Classes',
        'Other Training' ] %}

        <br /><h5>Education</h5> 
        {% for education in educations %}          
            <div id="dorcas_programs" style="padding-left:40px;">
                {% render 'DorcasTabithaBundle:Print:referredToSelect' with { 'agencyNumber': i, 'agencyName': education } %}
                {% set i = i + 1 %}
            </div>
        {% endfor %}

        {% set healthdentals = ['Alliance Medical Ministry ', 'FIGS Prescription Program', 'North Carolina Dental Bus ', 'The Open Door Clinic ',
        'UNC Dental Clinic', 'Wake Health Services', 'Other Medical Program' ] %}

        <br /><h5>Health and Dental </h5> 
        {% for healthdental in healthdentals %}          
            <div id="dorcas_programs" style="padding-left:40px;">
                {% render 'DorcasTabithaBundle:Print:referredToSelect' with { 'agencyNumber': i, 'agencyName': healthdental } %}
                {% set i = i + 1 %}
            </div>
        {% endfor %}


        {% set mentalhealths = ['Center for Hope and Healing ', 'Triangle Family Services ', 'Wake County Mental Health', 'Other Mental Health Program' ] %}

        <br /><h5>Mental Health</h5> 
        {% for mentalhealth in mentalhealths %}          
            <div id="dorcas_programs" style="padding-left:40px;">
                {% render 'DorcasTabithaBundle:Print:referredToSelect' with { 'agencyNumber': i, 'agencyName': mentalhealth } %}
                {% set i = i + 1 %}
            </div>
        {% endfor %}

        {% set recoverys = ['Haven House', 'Oxford House', 'South Light ', 'The Healing Place of Wake County',
         'Triangle Alano Club', 'Other Recovery Program' ] %}

        <br /><h5>Recovery Programs</h5> 
        {% for recovery in recoverys %}          
            <div id="dorcas_programs" style="padding-left:40px;">
                {% render 'DorcasTabithaBundle:Print:referredToSelect' with { 'agencyNumber': i, 'agencyName': recovery } %}
                {% set i = i + 1 %}
            </div>
        {% endfor %}

        {% set legalservices = ['Legal Aid ', 'North Carolina Legal Services', 'Other Legal Services' ] %}

        <br /><h5>Legal Services</h5> 
        {% for legalservice in legalservices %}          
            <div id="dorcas_programs" style="padding-left:40px;">
                {% render 'DorcasTabithaBundle:Print:referredToSelect' with { 'agencyNumber': i, 'agencyName': legalservice } %}
                {% set i = i + 1 %}
            </div>
        {% endfor %}

        {% set specialprograms = [ 'Christmas', 'Thanksgiving Program ', 'Dorcas Email List ', 
        'Other Special Program' ] %}

        <br /><h5>Special Programs</h5> 
        {% for specialprogram in specialprograms %}          
            <div id="dorcas_programs" style="padding-left:40px;">
                {% render 'DorcasTabithaBundle:Print:referredToSelect' with { 'agencyNumber': i, 'agencyName': specialprogram } %}
                {% set i = i + 1 %}
            </div>
        {% endfor %}

    </div>

    <br>&nbsp;<br> 
    <br>&nbsp;<br> 
</section>
</body>
</html>