<?php

$tableHead = '<tr>
				<th class="col-sm-3 align-left">Invoice Date</th>
				<th class="col-sm-3 align-left">Invoice Amount</th>
				<th class="col-sm-3 align-left">Payment Date</th>
				<th class="col-sm-3 align-left">Payment Status</th>
			</tr>'; 

$modalContent = ''; 
$modalContent .= '<div class="row"><div class="col-xs-12">';
$modalContent .= '<div class="table-responsive">';

$modalContent .= '<input type="hidden" name="op" value="'. $op .'" />
			<input type="hidden" name="adminType" value="'. $adminType .'" />';
$modalContent .= '<table class="adminForm table table-condensed">';
$modalContent .= '<tr>
				<th>Project Name:</th>
				<td colspan="3">'. $projectName .'</td>
			</tr>';		
$modalContent .= '<tr>
				<th class="col-sm-2">Client:</th>
				<td class="col-sm-4">'. $projectClient .'</td>
				<th class="col-sm-2">Status:</th>
				<td class="col-sm-4">'. $projectStatus .'</td>
			</tr>';	
$modalContent .= '<tr>
				<th>Description:</th>
				<td colspan="3">'. $projectDesc .'</td>
			</tr>';	
$modalContent .= '<tr>
				<th>Start Date:</th>
				<td>' . Date::convert($projectStart, 'Y-m-d', 'M d, Y') . '</td>
				<th>Target Completion:</th>
				<td>' . Date::convert($projectTargetComp, 'Y-m-d', 'M d, Y') . '</td>
			</tr>';
$modalContent .= '<tr>
				<th>Project Amount:</th>
				<td>&#36;' . $projectAmount . '</td>
				<th>Outstanding:</th>
				<td>&#36;' . $outstandingAmount . '</td>
			</tr>';
$modalContent .= '</table>';
$modalContent .= '</div><!-- /table-responsive -->';

$modalContent .= '<h3>Project Billing</h3>';

$modalContent .= '<div class="table-responsive">';
$modalContent .= '<table class="paymentInfo table table-striped table-condensed" cellspacing="0">'. $tableHead;
$modalContent .= '<tr class="newPayment line1">
				<td>
					<input type="hidden" name="paymentID" value="" />
					<input type="hidden" name="projectID" value="'. $projectID .'" />
					<label class="small">Enter New Invoice Date</label><br>
					<input type="text" name="invoiceDate" id="invoiceDate" class="datepicker dateField" />
				</td>
				<td>
					<label class="small">Enter New Invoice Amount</label><br>
					&#36;&nbsp;<input type="number" name="paymentAmount" />
				</td>
				<td>
					<label class="small">Enter Payment Date</label><br>
					<input type="text" name="paymentDate" id="paymentDate" class="datepicker dateField" />
				</td>
				<td>
					<br><input type="checkbox" name="paymentStatus" value="1" onclick="fillDate(\''. $today .'\',\'paymentDate\')" /> <label class="small">Check if PAID</label>
				</td>
			</tr>';
$modalContent .= '<tr class="newPayment line2">
				<th style="text-align: right">Notes:</th>
				<td colspan="4"><input type="text" name="paymentNote" id="paymentNote" style="width: 98%"></td>
			</tr>';
$modalContent .= '<tr><td colspan="4"><p style="text-align: center"><input type="submit" name="submit" value="'. $subBtn .'" /></p></td></tr>';
$modalContent .= $tableHead; 
$modalContent .= $paymentInfo;
$modalContent .= '</table>';
$modalContent .= '</div><!-- /table-responsive -->';

$modalContent .= '<p style="text-align: center"><input type="submit" name="submit" value="'. $subBtn .'" /></p>';

$modalContent .= '</div></div><!-- /.row -->';

?>