@extends('layouts.print')
 
@section('content')
<div class="main-content-wrapper">
	<div class="main-box">
		<div class="main-content">
			<div class="container">
				<div class="page">
					<div class="row">
						<div class="report-capital layout-print">
							<div class="header">
								<div class="logo">
									<img src="{{asset('assets/images/logo.png')}}" alt="" width="200px">
								</div>
								<div class="title">
									<h2>អឹមអិល មង្គល រៀលធី ឯ.ក</h2>
									<h2>ML MONGKUL CO., LTD.</h2>
									<h3>របាយការណ៍ស្នើការដាក់ប្រាក់</h3>
								</div>
								<div class="clear"></div>
								<div class="border-bottom"></div>
								<div class="table">
									<table>
										<thead>
											<tr>
						                        <th>No</th>
						                        <th>Requested Date</th>
						                        <th>Transaction</th>
						                        <th>Account Name</th>
						                        <th>Status</th>
						                        <th>Amount</th>
						                    </tr>
										</thead>
										<tbody>
											@foreach($transac as $key => $value)
											<tr>
												<td>{{$key+1}}</td>
												<td>{{$value->request_date}}</td>
												<td>Add Funds</td>
												<td>{{$value->account_name}} {{($value->account_number)}}</td>
												<td>
													@if($value->status == 1)
														<strong class="text-success"><span class="fa fa-check"></span> Approved / {{$value->app_rej_date}}</strong>
													@elseif($value->status == 2)
														<strong class="text-danger"><span class="fa fa-close"></span> Rejected / {{$value->app_rej_date}}</strong>
													@else 
														<button class="btn btn-default btn-sm"><strong class=" text-primary"><span class="fa fa-check"></span> Approve</strong></button>
							                    		<button class="btn btn-default btn-sm"><strong class=" text-danger"><span class="fa fa-close"></span> Reject</strong></button>
													@endif
												</td>
												<td>${{number_format($value->amount, 2)}}</td>
											</tr>
											@endforeach()

										</tbody>
										<tfoot>
											<tr>
												<th colspan="5">Total</th>
												<th>$ {{number_format($total,2)}}</th>
											</tr>
										</tfoot>
									</table>
									<div class="make-date">
										<p>ធ្វើនៅ​ <strong>ភ្នំពេញ</strong> ថ្ងៃទី <strong>{{\Globals::date_khmers(date('Y-m-d'))}}</strong></p>
									</div>
									<div class="sign">
										<h3>ហត្ថលេខា</h3>
										<p>_________________</p>
									</div>
								</div>
							</div>
						</div>
							
						
					</div>
					
					
				</div>
			</div>
		</div>
	</div>
</div>

@endsection


