<!DOCTYPE html>
<html>
	<head>
		<title><?php echo $title; ?></title>
		<base href="<?php echo base_url(); ?>">
		<meta charset="utf-8">
		<!-- Tell the browser to be responsive to screen width -->
		<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

		<link rel="shortcut icon" href="assets/images/favicon.png" type="image/x-icon">

		<!-- Theme style -->
		<link rel="stylesheet" href="assets/AdminLTE-3.2.0/dist/css/adminlte.min.css">

		<!-- Google Font: Source Sans Pro -->
		<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
	</head>

	<body onload="window.print();">
		<div class="wrapper">
			<!-- Main content -->
			<section class="content">
				<div class="container-fluid">
					<!-- Small boxes (Stat box) -->
					<div class="row">
						<div class="col-md-12">
							<!-- Invoice content -->
							<div class="invoice p-3 mb-3">
								<!-- title row -->
								<div class="row mb-4">
									<div class="col-12">
										<h2 class="page-header">
											<?php echo $this->session->company_name; ?>
											<small class="float-right">Date:<?php echo date_to_ui( $details['mr_date'] ); ?></small>
										</h2>
										<h3 class="text-center">Money Receipt</h3>
									</div>
								</div>

								<!-- info row -->
								<div class="row invoice-info mb-4">
									<div class="col-md-6 invoice-col">
										<strong>Money Receipt #</strong> <?php echo $details['mr_no']; ?><br>
										Date: <?php echo date_to_ui( $details['mr_date'] ); ?><br>
										Memo: <?php echo $details['memo']; ?><br>
										Ref. Employee: <?php if ( count( $emp ) > 0 ) {echo $emp['name'];}?><br>
									</div>

									<div class="col-md-6 invoice-col">
										<strong>Customer Details</strong><br>
										Name: <?php echo $customer['name']; ?><br>
										Address: <?php echo $customer['address']; ?><br>
										Mobile: <?php echo $customer['mobile']; ?><br>
										Email: <?php echo $customer['email']; ?><br>
									</div>
								</div>

								<!-- Table row -->
								<div class="row">
									<div class="col-md-12">
										<table class="table table-bordered table-striped">
											<thead>
												<tr>
													<th>Details</th>
													<th class="col-md-4 text-right">Amount</th>
												</tr>
											</thead>
											<tbody>
												<tr>
													<td>Receive from Customer</td>
													<td class="col-md-4 text-right"><?php echo number_format( $details['amount'], 2 ); ?></td>
												</tr>
											</tbody>
										</table>
									</div>
								</div>

								<!-- Table row -->
								<div class="row">
									<div class="col-md-12">
										<table class="table table-bordered table-striped">
											<thead>
												<tr>
													<th class="text-center">Grand Total</th>
													<th class="col-md-4 text-right">
														<?php if ( $this->session->currency_symbol_position == 'Before' ) {echo $this->session->currency_symbol;}?><?php echo number_format( $details['amount'], 2 ); ?><?php if ( $this->session->currency_symbol_position == 'After' ) {echo $this->session->currency_symbol;}?>
													</th>
												</tr>
											</thead>
										</table>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</section>
		</div>
	</body>
</html>