@extends('admin.layouts.master')
@section('title', __('one_signal_notification_send'))

@section('content')
    <div class="container-fluid">
        <div class="row justify-content-center">
            <div class="col-lg-6">
                <h3 class="section-title">{{ __('send_one_signal_message') }}</h3>
                <div class="bg-white redious-border p-20 p-sm-30 pt-sm-30">
                    <form action="{{route('setting.one.signal.test')}}" method="post" enctype="multipart/form-data">
                        @csrf
                        <div class="mb-2">
                            <label for="heading" class="form-label"> {{ __('Headings') }} <span class="text-danger">*</span> </label>
                            <input type="text" class="form-control rounded-2" id="heading" name="heading"
                                value="{{ old('heading') }}" placeholder="{{ __('heading') }}">
                            <div class="nk-block-des text-danger">
                                <p class="error">{{ $errors->first('heading') }}</p>
                            </div>
                        </div>
                        <div class="mb-2">
                            <label for="message" class="form-label"> {{ __('message') }} <span class="text-danger">*</span> </label>

                            <textarea name="message" id="message" cols="30" class="form-control rounded-2" rows="10"
                                placeholder="{{ __('message') }}">{{ old('message') }}</textarea>
                            <div class="nk-block-des text-danger">
                                <p class="error">{{ $errors->first('message') }}</p>
                            </div>
                        </div>
                        <div class="mb-2">
                            <label for="url" class="form-label"> {{ __('url') }} <span class="text-danger">*</span> </label>
                            <input type="text" class="form-control rounded-2" id="url" name="url"
                                value="{{ url('/') }}" placeholder="{{ __('url') }}">
                            <div class="nk-block-des text-danger">
                                <p class="error">{{ $errors->first('url') }}</p>
                            </div>
                        </div>
                        <div class="mb-2">
                            <label for="icon_url" class="form-label"> {{ __('icon_url') }} <span class="text-danger">*</span> </label>
                            <input type="text" class="form-control rounded-2" id="icon_url" name="icon_url"
                                value="{{ old('icon_url') }}" placeholder="{{ __('icon_url') }}">
                            <div class="nk-block-des text-danger">
                                <p class="error">{{ $errors->first('icon_url') }}</p>
                            </div>
                        </div>

                        <div class="d-flex justify-content-start align-items-center mt-3">
                            <button type="submit" class="btn sg-btn-primary">{{ __('send') }}</button>
                            @include('layouts.loading_button', ['class' => 'btn sg-btn-primary'])
                        </div>
                    </form>
                </div>
            </div>
            
        </div>
    </div>
@endsection
