<!doctype html>
<html  {$html_attrs}>
	<head>
				<meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>{$pagetitle}</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<base href="{$projectPath}">
		<link REL="stylesheet" href="styles/default.css?{$wizardBuildKey}" type="text/css">
	{BEGIN rtlCSS}
	<link REL="stylesheet" href="styles/defaultRTL.css?{$wizardBuildKey}" type="text/css">
	{END rtlCSS}
	{BEGIN styleCSSFiles}
	<link REL="stylesheet" href="{$stylepath}" type="text/css">
	{END styleCSSFiles}
	</head>

	<body class="{$stylename} function-rprint" {$bodyattrs}>
	{BEGIN body}
		{$header}
		<style>
			{$containerCss}
		</style>
		{$locking}
		<div class="r-small-page" 
			data-body-align="left"
			data-body-width="standard"
		>
							{BEGIN top_block}
<div class="r-form" data-location="top" id="form_top_{$pageid}" data-makeup="small" {$form_top} data-pageid="{$pageid}" >		
	 
		<div class="row">
			 
				<div 
	data-cellId="top_c2" data-pageid="{$pageid}"	{$cell_top_c2}
	class=" r-ori-vert			col-md-12
	
">
		 
		<h2 data-itemtype="print_header" data-itemid="print_header" {$item_print_header} data-pageid="{$pageid}" >{$pagetitlelabel collections_Report rprint}</h2>
	 
		{BEGIN printtabheader}
<span data-itemtype="print_subheader" data-itemid="print_subheader" {$item_print_subheader} data-pageid="{$pageid}" >
{$printtabheader_text}
</span>
{END printtabheader}
		</div>					</div>
	</div>		
{END top_block}
									{BEGIN above-grid_block}
<div class="r-form" data-location="above-grid" id="form_above-grid_{$pageid}" data-makeup="small" {$form_above-grid} data-pageid="{$pageid}" >		
	 
		<div class="row">
			 
				<div 
	data-cellId="above-grid_c1" data-pageid="{$pageid}"	{$cell_above-grid_c1}
	class=" r-ori-vert			col-md-12
	
">
		{BEGIN firstAboveGridCell}
		 
		<span data-itemtype="print_pages" data-itemid="print_pages" {$item_print_pages} data-pageid="{$pageid}" data-small >
	{$print_pages_labelprint_pages}
</span>			{END firstAboveGridCell}	
	</div>					</div>
	</div>		
{END above-grid_block}
									{BEGIN grid_block}
<style>
	td.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary {
		background-color: #ffffbb;
	}
	td.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary {background-color: #ffe0b0;
	}
	.rnr-report {
		width: 100%;
	}
	td {
		padding: 2px; 4px;
	}
			td.group_1{
			background-color: #7F7F7F;
		}
		td.nbgroup_1{
			background-color: #7F7F7F;
		}
		td.header_1 {
			background-color: #6B6B6B; 
			font-size: 120%;
			padding: 2px 8px;
			font-weight: bold;
		}
			td.group_2{
			background-color: #C0C0C0;
		}
		td.nbgroup_2{
			background-color: #C0C0C0;
		}
		td.header_2 {
			background-color: #A3A3A3; 
			font-size: 120%;
			padding: 2px 8px;
			font-weight: bold;
		}
		td.blackshade {
		font-size: 120%;
	}
	.summaryrow > * {
		border:solid #808080 1px; 
		border-left: none; 
		border-right: none;
	}
		.grouptotalsrow + :not(.grouptotalsrow) > * {
		border-top:solid #808080 1px; 
	}
	</style>
<div id="grid_block{$id}" class="rnr-report-gridblock">
						
 <!-- add to settings ? -->


<table class="table table-striped table-bordered rnr-b-grid rnr-gridtable" cellpadding="0" >
	<tbody>
	{BEGIN grid_row}
			{BEGIN pay_date_newgroup}
				<tr class="group-headers">
										<td class="blackshade {$fieldclass_pay_date}">{$label collections_Report pay_date }</td>
														<td class="blackshade {$fieldclass_user}">{$label collections_Report user }</td>
																																																	
																								<td class="blackshade {$fieldclass_collection_id}">{$label collections_Report collection_id }</td>
														<td class="blackshade {$fieldclass_loan_id}">{$label collections_Report loan_id }</td>
														<td class="blackshade {$fieldclass_amount}">{$label collections_Report amount }</td>
														<td class="blackshade {$fieldclass_customer_id}">{$label collections_Report customer_id }</td>
														<td class="blackshade {$fieldclass_details}">{$label collections_Report details }</td>
														<td class="blackshade {$fieldclass_creat_at}">{$label collections_Report creat_at }</td>
									</tr>
		
		<tr class="group-spliter-1"  >
															<td colspan="8" class="header_1">
				<font >
				{$xpay_date_grval}
								<span data-itemtype="grid_field" data-field="pay_date" data-itemid="grid_field2" data-pageid={$pageid} data-record-id="{$recId}">
{$pay_date_grval}
</span>				</font>
			</td>
																					</tr>
		{END pay_date_newgroup}
			{BEGIN user_newgroup}
		
		<tr class="group-spliter-2" {$rowattrs} >
										<td class=" group_1" >&nbsp;</td>
																			<td colspan="7" class="header_2">
				<font>
				{$xuser_grval}
								<span data-itemtype="grid_field" data-field="user" data-itemid="grid_field3" data-pageid={$pageid} data-record-id="{$recId}">
{$user_grval}
</span>				</font>
			</td>
														</tr>
		{END user_newgroup}
	
		<!--  data-->
		{BEGIN row_data}
		<tr>
								<td class="{$fieldclass_pay_date} group_1">
				{$xpay_date_value}
								<span data-itemtype="grid_field" data-field="pay_date" data-itemid="grid_field4" data-pageid={$pageid} data-record-id="{$recId}">
{$pay_date_value}
</span>			</td>
											<td class=" group_2" >&nbsp;</td>
																							<td class="data {$fieldclass_collection_id}">
				{$xcollection_id_value}
								<span data-itemtype="grid_field" data-field="collection_id" data-itemid="grid_field5" data-pageid={$pageid} data-record-id="{$recId}">
{$collection_id_value}
</span>			</td>
											<td class="data {$fieldclass_loan_id}">
				{$xloan_id_value}
								<span data-itemtype="grid_field" data-field="loan_id" data-itemid="grid_field6" data-pageid={$pageid} data-record-id="{$recId}">
{$loan_id_value}
</span>			</td>
											<td class="data {$fieldclass_amount}">
				{$xamount_value}
								<span data-itemtype="grid_field" data-field="amount" data-itemid="grid_field7" data-pageid={$pageid} data-record-id="{$recId}">
{$amount_value}
</span>			</td>
											<td class="data {$fieldclass_customer_id}">
				{$xcustomer_id_value}
								<span data-itemtype="grid_field" data-field="customer_id" data-itemid="grid_field8" data-pageid={$pageid} data-record-id="{$recId}">
{$customer_id_value}
</span>			</td>
											<td class="data {$fieldclass_details}">
				{$xdetails_value}
								<span data-itemtype="grid_field" data-field="details" data-itemid="grid_field9" data-pageid={$pageid} data-record-id="{$recId}">
{$details_value}
</span>			</td>
											<td class="data {$fieldclass_creat_at}">
				{$xcreat_at_value}
								<span data-itemtype="grid_field" data-field="creat_at" data-itemid="grid_field10" data-pageid={$pageid} data-record-id="{$recId}">
{$creat_at_value}
</span>			</td>
							</tr>
		{END row_data}
	
				{BEGIN user_endgroup}
		<tr class="summaryrow"  >
										<td class="group_1" style="border-top: none;"></td>
							
																	<td  class="group_2" colspan=7 >
				Summary for&nbsp;{$label collections_Report user }&nbsp;{$user_grval}
					- <span class="summary-2" data-type="summary">{$groupuser_total_cnt}
					</span> records total			</td>
																																																			</tr>

		<!--  Sum -->
		<tr class="grouptotalsrow" >
					
						<td class="group_1">&nbsp;</td>
								
						<td class="group_2">Sum</td>
								
						<td class="group_2">&nbsp;</td>
								
						<td class="group_2">&nbsp;</td>
								
						<td class="{$fieldclass_amount} group_2">
				<span class="summary-2" data-type="sum" data-field="amount">
					{$groupuser_totalamount_sum}
				</span>
			</td>
								
						<td class="group_2">&nbsp;</td>
								
						<td class="group_2">&nbsp;</td>
								
						<td class="group_2">&nbsp;</td>
							</tr>
	
	
	
	
	{END user_endgroup}
						{BEGIN pay_date_endgroup}
		<tr class="summaryrow"  >
			
										<td  class="group_1" colspan=8 >
				Summary for&nbsp;{$label collections_Report pay_date }&nbsp;{$pay_date_grval}
					- <span class="summary-1" data-type="summary">{$grouppay_date_total_cnt}
					</span> records total			</td>
																																																										</tr>

		<!--  Sum -->
		<tr class="grouptotalsrow" >
					
						<td class="group_1">Sum</td>
								
						<td class="group_1">&nbsp;</td>
								
						<td class="group_1">&nbsp;</td>
								
						<td class="group_1">&nbsp;</td>
								
						<td class="{$fieldclass_amount} group_1">
				<span class="summary-1" data-type="sum" data-field="amount">
					{$grouppay_date_totalamount_sum}
				</span>
			</td>
								
						<td class="group_1">&nbsp;</td>
								
						<td class="group_1">&nbsp;</td>
								
						<td class="group_1">&nbsp;</td>
							</tr>
	
	
	
	
	{END pay_date_endgroup}
			
	{END grid_row}


	


    
    {BEGIN page_summary}
    <!-- page summary-->
    <tr class="summaryrow summary-page">
        <td class="pagesummary" colspan="8">Page summary            <span class="page-summary" data-type="summary">{$page_total_cnt}</span> - records total        </td>
    </tr>
	    <!--  Sum -->
    <tr class="summary-page">
					
                        <td class="pagesummary">Sum</td>
            		
					
                        <td class="pagesummary">&nbsp;</td>
					
					
                        <td class="pagesummary">&nbsp;</td>
					
					
                        <td class="pagesummary">&nbsp;</td>
					
					
                        <td class="pagesummary {$fieldclass_amount}">
				<span class="page-summary" data-type="sum" data-field="amount">
					{$page_totalamount_sum}
                </span>
            </td>
            		
					
                        <td class="pagesummary">&nbsp;</td>
					
					
                        <td class="pagesummary">&nbsp;</td>
					
					
                        <td class="pagesummary">&nbsp;</td>
					
		</tr>
	
	
	
	    {END page_summary}


	</tbody>
</table>


			</div>
{END grid_block}									{BEGIN below-grid_block}
<div class="r-form" data-location="below-grid" id="form_below-grid_{$pageid}" data-makeup="small" {$form_below-grid} data-pageid="{$pageid}" >		
	</div>		
{END below-grid_block}
			</div>
		{$footer}
	{END body}
	</body>
</html>
