<!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();   
            }); 
        });
        </script>
	
	
	{% set totalpledge = 0 %}
	
	{% set totalpledge = totalpledge + pledge.pledgedorcas + pledge.pledgeother + pledge.pledgeother2 %}

    </head>
    <body style=" padding:0px;"> 
        <section style="font-size:14px;">

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

        <center><img src="{{ asset('bundles/dorcastabitha/images/dorcasLogoVertical.png') }}" alt="Dorcas">
        <h4>
        187 High House Road<br />
        Cary, NC 27511<br />
        </h4>

        <h2>Pledge Confirmation</h2></center>
        

        <p style="line-height:180%; padding-left: 20px;">
            <strong>Date:</strong> {{ "now"|date("m/d/Y") }}
			<span style="padding-left:300px;"><strong>Counselor:</strong> {{ pledge.counselor }}</span>
            <br /><br />
            <strong>Client Name:</strong> {{ pledge.clientname }} 
            <br />
            <strong>Client Address:</strong> {{ pledge.clientaddress }}
            
			
			<div style="border:1px solid; background-color:#cdf1f1;padding-left:20px; 
                            padding-top:5px; height:105px; ">
				<div style="width:68%; float:left">
					<strong>Total Amount of Pledge: $</strong> {{ totalpledge|number_format(2, '.', ',') }}
					<br />&nbsp;<br />
					
						<strong>Assistance Offered by Dorcas: </strong>  
						<br />
					
					
						<strong>Amount of Pledge from Other Agency:</strong> {{ pledge.otherdesc }} 
						<br />
					
					
						<strong>Amount of Pledge from Other Agency:</strong> {{ pledge.otherdesc2 }} 
						<br />
					
				</div>
			
				<div style="width:28%; float:right;">
					<br />&nbsp;<br />
					
						  $ {{ pledge.pledgedorcas|number_format(2, '.', ',') }}
					<br />
					
					
						 $ {{ pledge.pledgeother|number_format(2, '.', ',') }} 
						<br />
					
						  $ {{ pledge.pledgeother2|number_format(2, '.', ',') }} 
						<br />
					
				</div>
			</div>
			
			
            <div style="padding:20px; height: 110px;">
				<strong>Type of Assistance (Rent, Water, Oasis, Gas, etc.):</strong> {{ pledge.checkpurpose }}
				<br />

				<strong>Account Number:</strong> {{ pledge.accountnumber }}
				<span style="padding-left:96px;"> <strong>Name on Bill: </strong>{{ pledge.nameonbill }} </span>
				<br />
				<strong>Vendor Name:</strong> {{ pledge.vendorname }}
				<br />
				<strong>Vendor Address:</strong> {{ pledge.vendoraddress }}
				<br />&nbsp;<br />
                                <div style="height:50px; width:130px; float:left;">
                                    <strong>Pledge Made By:</strong>
                                </div>
				<span style="padding-left:20px;"> <strong>Phone: </strong></span>
				
				{% if pledge.vendorphone %}
						<input type="checkbox" name="phone" disabled="disabled" checked="checked" />
				 {% else %}
						<input type="checkbox" name="phone" disabled="disabled" />
				{% endif %}
				
				<span style="padding-left:20px;"> <strong>Vendor Contact: </strong>{{ pledge.vendorcontact }}</span>
				<br />
				<span style="padding-left:20px;"> <strong>On-line: </strong></span>
				
				{% if pledge.online %}
						<input type="checkbox" name="online" disabled="disabled" checked="checked" />
				 {% else %}
						<input type="checkbox" name="online" disabled="disabled" />
				{% endif %}
				
				<span style="padding-left:12px;"> <strong>Confirmation Number: </strong>{{ pledge.confirmnum }}</span>
			</div>
			
			
        </p>    
        
        
		<div style="border:1px solid; padding: 14px; font-size:12px;">
        ATTENTION: This is to confirm that Dorcas Ministries has pledged the above 
        stated amount toward the payment of the above-named clients's bill.  A check in
         this amount will be requested from our bookkeeper.
         <br />
         If you have any questions, you may contact Dorcas Ministries at
		 <br />&nbsp;
		 <center><strong>919-469-9861, ext. 201</strong></center>
		  
		 </div>
       


        </section>
		
			<div id="footer">
				{% block footer %}
				&copy; 2012, Copyright JLS Consulting
						<br>&nbsp;<br> 
						 <center><h8>Developed By:</h8></center>
						 <center><img src="{{ asset('bundles/dorcastabitha/images/jlsLogo_aqua.png') }}" alt="JLSConsulting" /></center>                
				{% endblock %}
            </div>
    </body>
</html>



 
