<?php
    $phoneNumber = @$orderUserSnapshot->phoneNumber;
?>
<div moe wide>
    <a start show href="#">SMS Results</a>
    <form url="{{ route('admin.orders.view.sms-report', $order) }}">
        <div class="mb-2">
            <label class="text-sm text-secondary mb-1">From Number<sup class="text-danger">*</sup></label>
            <input type="text" name="fromNumber" class="form-control form-control-sm" value="{{ config('app.phoneNumber') }}" required />
        </div>
        <div class="mb-2">
            <label class="text-sm text-secondary mb-1">To Number<sup class="text-danger">*</sup></label>
            <input type="text" name="toNumber" class="form-control form-control-sm" value="{{ @$phoneNumber }}"
                required />
        </div>
        <div class="mb-2">
            <label class="fw-bold mb-1">Message</label>
            <textarea name="message" class="form-control form-control-sm" accept="application/pdf" style="min-height:60px;">Your test results are ready. {{ $results_attachment['attachmentAccessTokenUrl'] }}</textarea>
        </div>
        <div class="mb-2">
            <span class="me-1">Report: <i class="fas fa-paperclip fa-fw"></i> <a
                    href="{{ $results_attachment['attachmentAccessTokenUrl'] }}"
                    target="_blank">{{ $results_attachment['orginalFileName'] }}</a></span>
        </div>
        <div>
            <button submit class="btn btn-sm btn-primary me-2">Send</button>
            <button cancel class="btn btn-sm btn-default border">Cancel</button>
        </div>
    </form>
</div>
