<table>
    <tr>
        <td style="width: 300px;text-align: right">From </td>
        <td><strong>1st reminder</strong> </td>
    </tr>
    <tr>
        <td style="width: 300px;text-align: right">SMS Type <br> <span
                style="color:#FF0000;font-size:12px">{{ $bill_reminder->first_reminder_day }}
                Day Before payment deadline</span></td>
        <td style="vertical-align: top"><strong>Auto</strong></td>
    </tr>

    <tr>
        <td style="width: 300px;text-align: right">When?</td>
        <td style="vertical-align: top">

            <input type="number" id="first_reminder_day" value="{{ $bill_reminder->first_reminder_day }}"> Day Before
            Payment
            Deadline

        </td>
    </tr>


    <tr>
        <td style="width: 300px;text-align: right;">Send SMS?</td>
        <td style="vertical-align: top">
            <div class="row">
                <div class="form-check">
                    <input class="form-check-input" type="radio" name="first_reminder_sendsms" id="first_reminder_yes"
                        @if ($bill_reminder->frist_sendsms == 'Yes') checked @endif value="Yes">
                    <label class="form-check-label" for="yes">
                        Yes
                    </label>
                </div>
                <div class="form-check">
                    <input class="form-check-input" type="radio" name="first_reminder_sendsms" id="first_reminder_no"
                        @if ($bill_reminder->frist_sendsms == 'No') checked @endif value="No">
                    <label class="form-check-label" for="no">
                        No
                    </label>
                </div>
            </div>

        </td>
    </tr>

    <tr>
        <td style="width: 300px;text-align: right;vertical-align: top">SMS Massage* <br>
            <span style="color:#FF0000;font-size:12px">Type Text here</span>
        </td>
        <td style="width: 600px">

            <textarea class="form-control" id="first_reminder_sms_body" spellcheck="false" rows="10">{{ $bill_reminder->frist_sms_body }}</textarea>

        </td>
        <td style="width: 300px">
            <textarea class="form-control" id="first_reminder_sms_fiels" spellcheck="false" rows="10" readonly>{c_id}&#10;{c_code}&#10;{c_username}&#10;{c_name}&#10;{c_password}&#10;{c_deadline}&#10;{MonthlyBill}&#10;{TotalDue}&#10;{BTRC_speed}&#10;{BTRC_rate}&#10;{company_name}&#10;{company_cell}&#10;{payment_url}</textarea>

        </td>
    </tr>


    <tr class="d-none">
        <td style="width: 300px;text-align: right">From </td>
        <td><strong>2nd reminder</strong> </td>
    </tr>
    <tr class="d-none">
        <td style="width: 300px;text-align: right">SMS Type <br> <span style="color:#FF0000;font-size:12px">1-Day Before
                payment deadline</span>
        </td>
        <td style="vertical-align: top"><strong>Auto</strong></td>
    </tr>

    <tr class="d-none">
        <td style="width: 300px;text-align: right">When?</td>
        <td style="vertical-align: top">

            <input type="number" id="second_reminder_day" value="{{ $bill_reminder->second_reminder_day }}"> Day Before
            Payment
            Deadline

        </td>
    </tr>


    <tr class="d-none">
        <td style="width: 300px;text-align: right;">Send SMS?</td>
        <td style="vertical-align: top">
            <div class="row">
                <div class="form-check">
                    <input class="form-check-input" type="radio" name="second_reminder_sendsms"
                        id="second_reminder_yes" @if ($bill_reminder->second_sendsms == 'Yes') checked @endif value="Yes">
                    <label class="form-check-label" for="yes">
                        Yes
                    </label>
                </div>
                <div class="form-check">
                    <input class="form-check-input" type="radio" name="second_reminder_sendsms"
                        id="second_reminder_no" @if ($bill_reminder->second_sendsms == 'No') checked @endif value="No">
                    <label class="form-check-label" for="no">
                        No
                    </label>
                </div>
            </div>

        </td>
    </tr>

    <tr class="d-none">
        <td style="width: 300px;text-align: right;vertical-align: top">SMS Massage* <br>
            <span style="color:#FF0000;font-size:12px">Type Text here</span>
        </td>
        <td style="width: 600px">

            <textarea class="form-control" id="second_reminder_sms_body" spellcheck="false" rows="10">{{ $bill_reminder->second_sms_body }}</textarea>

        </td>
        <td style="width: 300px">
            <textarea class="form-control" id="second_reminder_sms_fiels" spellcheck="false" rows="10" readonly>{c_id}&#10;{c_code}&#10;{c_password}&#10;{c_username}&#10;{c_name}&#10;{c_deadline}&#10;{TotalDue}&#10;{company_name}&#10;{company_cell}</textarea>

        </td>
    </tr>
</table>
<div class="row mt-2">
    <div class="col-md-12">
        @can('view-sms-log-history')
            <div class="float-right">
                <a href="{{ route('editLog-history', ['id' => $smsSetting[8]->id, 'type' => $smsSetting[8]->tamplate_name]) }}"
                    class="btn btn-info pull-right">History</a>
            </div>
        @endcan
        <div class="float-right">
            <button type="submit" id="reminder_submit" class="btn btn-default bg-primary float-right">Submit</button>
        </div>
        <div class="float-right">
            <button type="submit" id="reminder_reset" class="btn btn-default float-right mr-2">Reset</button>
        </div>
    </div>


</div>
