<!DOCTYPE html>
<html lang="en-US">
	<head>
		<meta charset="utf-8">
	</head>
	<body>
		<div class="">
			<img src="{!! url('public/assets/img/click-banner.png') !!}" alt="Click Mobile Banner Logo">
		</div>
		<h2>Short Code Invoice/Payment Alert</h2>
		{{ date('F d, Y') }} <br>

		Hello Accounts Team,<br>

		<p>{{ $message_body }}</p>

		<p>Short Code : {{$finance_arr['short_code'] }} </p> 
        <p>Invoice Date : {{ $finance_arr['invoice_date'] }} </p> 
        <p>Invoice Number : {{ $finance_arr['invoice_number'] }} </p> 
        <p>Amount : {{ $finance_arr['invoice_amount'] }} </p> 
        <p>Status : {{ $finance_arr['invoice_status'] }} </p> 
        <p>Remarks : {{ $finance_arr['remarks'] }}</p> 
		
		<strong>Client Short Short Codes</strong>
		<table bgcolor="#ACD13C" width="100%" style="border-style:solid; border-width:1px; border-color:#000000;" cellpadding="2" cellspacing="0">
			<tr style="font-weight: normal; font-size: 0.9em; color: #000000; font-family: Arial,helvetica,sans; padding:0px; text-align:left; border-style:solid; border-width:1px; border-color:#000000;">
		        <th>Name</th>
		        <th>Code</th>
		        <th>Network</th>
		        <th>Toll Free</th>
		        <th>Status</th>
		        <th>Remarks</th>
		        <th>Launch Date</th>
		        <th>Renewal Date</th>
	        </tr>
	        @if ($short_code_list->isEmpty())
	        <tr>
	          	<td colspan="12" style="font-weight: normal; font-size: 0.9em; color: #000000; font-family: Arial,helvetica,sans; padding:0px; text-align:left; border-style:solid; border-width:1px; border-color:#000000;">
	          		No Records found
	          	</td>
	        </tr>
	        @else
	        @foreach ($short_code_list as $row)
	        	<tr>
	          	<td style="font-weight: normal; font-size: 0.9em; color: #000000; font-family: Arial,helvetica,sans; padding:0px; text-align:left; border-style:solid; border-width:1px; border-color:#000000;">
	          		{{ $row->name }}
	          	</td>
	          	<td style="font-weight: normal; font-size: 0.9em; color: #000000; font-family: Arial,helvetica,sans; padding:0px; text-align:left; border-style:solid; border-width:1px; border-color:#000000;">
	          		<b>{{ $row->shortcode }}</b>
	          	</td>
	          	<td style="font-weight: normal; font-size: 0.9em; color: #000000; font-family: Arial,helvetica,sans; padding:0px; text-align:left; border-style:solid; border-width:1px; border-color:#000000;">
	          		{{ $row->network }}
	          	</td>
	          	<td style="font-weight: normal; font-size: 0.9em; color: #000000; font-family: Arial,helvetica,sans; padding:0px; text-align:left; border-style:solid; border-width:1px; border-color:#000000;">
	          		{{ strtoupper($row->toll_free) }}
	          	</td>
	          	<td style="font-weight: normal; font-size: 0.9em; color: #000000; font-family: Arial,helvetica,sans; padding:0px; text-align:left; border-style:solid; border-width:1px; border-color:#000000;">
	          		{{ $row->status }}
	          	</td>
	          	<td style="font-weight: normal; font-size: 0.9em; color: #000000; font-family: Arial,helvetica,sans; padding:0px; text-align:left; border-style:solid; border-width:1px; border-color:#000000;">
	          		{{ $row->remarks }}
	          	</td>
	          	<td style="font-weight: normal; font-size: 0.9em; color: #000000; font-family: Arial,helvetica,sans; padding:0px; text-align:left; border-style:solid; border-width:1px; border-color:#000000;">
	          		{{ date('d-m-Y', strtotime($row->launch_date)) }}</td>
	          	<td style="font-weight: normal; font-size: 0.9em; color: #000000; font-family: Arial,helvetica,sans; padding:0px; text-align:left; border-style:solid; border-width:1px; border-color:#000000;">
	            	@if($row->expiry_date == false)
	              		{{ "N/A"}}
	            	@else
	              		{{ date('d-m-Y', strtotime($row->expiry_date)) }}
	            	@endif
	          	</td>
	        </tr>
	        @endforeach
	        @endif
	      	</tbody>
		</table>
		
	</body>
</html>
