<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" style="border:1px solid #ECECEC">
    <tr>
        <td>
            @include('emails.partials.header')

            <table width="600" border="0" align="center" cellpadding="15" style="border-top:1px solid #ECECEC">
                <tbody>
                    <tr>
                        <td align="left" valign="top">

                            <p style="font-family:arial;font-size:13px;color:#000;line-height:18px;font-weight:bold">{{ parse_date_from_db_datetime(\Carbon\Carbon::now()) }}</p>

                            <p style="font-size:15px; font-family: arial; font-weight:bold; color: #22A7F0">Lease Ending:</p>

                            <p style="font-family:arial;font-size:13px;color:#000;line-height:18px;">{{config('mail.adminName')}},</p>

                            <p style="font-family:arial;font-size:13px;color:#000;line-height:18px;">The following leases are ending this week:</p>

                            <table width="600" border="0" align="center" cellpadding="15">
                                <tbody>
                                    @foreach($assets as $asset)
                                    <tr>
                                        <td align="left" valign="top" style="border-bottom: solid 1px #ECECEC">{{$asset->location->room_name ?? ''}}</td>
                                        <td align="left" valign="top" style="border-bottom: solid 1px #ECECEC">{{$asset->asset_tag}} - {{$asset->makeAndModel->makeModelName ?? ''}} {{$asset->technicalSpec->details ?? ''}}</td>
                                        <td align="left" valign="top" style="border-bottom: solid 1px #ECECEC">{{$asset->lease_end_date}}</td>
                                    </tr>
                                    @endforeach
                                </tbody>
                            </table>
                        </td>
                    </tr>
                </tbody>
            </table>
        </td>
    </tr>
</table>

