@extends('backend.admin-master')
@section('site-title')
    {{__('Buy Subscription Template')}}
@endsection
@section('style')
    <x-media.css/>
    <x-summernote.css/>
@endsection
@section('content')
    <div class="col-lg-12 col-ml-12 padding-bottom-30">
        <div class="row">
            <div class="col-lg-12">
                <div class="margin-top-40"></div>
                <x-msg.success/>
                <x-msg.error/>
            </div>
            <div class="col-lg-12 mt-5">
                <div class="card">
                    <div class="card-body">
                        <div class="header-wrapp d-flex justify-content-between">
                            <h4 class="header-title">{{__('Buy Subscription Template')}}</h4>
                            <a class="btn btn-info" href="{{route('admin.email.template.all')}}">{{__('All Email Templates')}}</a>
                        </div>
                        <form action="{{route('admin.subscription.buy.email')}}" method="post" enctype="multipart/form-data">
                            @csrf
                            <div class="tab-content margin-top-30">
                                <div class="form-group">
                                    <label for="new_order_email_subject">{{__('Email Subject')}}</label>
                                    <input type="text" name="buy_subscription_email_subject"  class="form-control" value="{{ get_static_option('buy_subscription_email_subject') ?? __('New Subscription') }}">
                                </div>
                                <div class="form-group">
                                    <label for="buy_subscription_seller_message">{{ __('Email Message For Seller') }}</label>
                                    <textarea class="form-control summernote" name="buy_subscription_seller_message">{!! get_static_option('buy_subscription_seller_message') ?? '' !!} </textarea>
                                </div>
                                <div class="form-group">
                                    <label for="buy_subscription_admin_message">{{ __('Email Message For Admin') }}</label>
                                    <textarea class="form-control summernote" name="buy_subscription_admin_message">{!! get_static_option('buy_subscription_admin_message') ?? '' !!} </textarea>
                                </div>
                                <small class="form-text text-muted text-danger margin-top-20"><code>@type</code> {{__('will be replaced by dynamically with subscription type.')}}</small>
                                <small class="form-text text-muted text-danger"><code>@price</code> {{__('will be replaced by dynamically with subscription price.')}}</small>
                                <small class="form-text text-muted text-danger"><code>@connect</code> {{__('will be replaced by dynamically with subscription connect.')}}</small>
                                <small class="form-text text-muted text-danger"><code>@service</code> {{__('will be replaced by dynamically with subscription service.')}}</small>
                                <small class="form-text text-muted text-danger"><code>@job</code> {{__('will be replaced by dynamically with subscription job.')}}</small>
                                <small class="form-text text-muted text-danger"><code>@seller_name</code> {{__('will be replaced by dynamically with seller name.')}}</small>
                                <small class="form-text text-muted text-danger"><code>@seller_email</code> {{__('will be replaced by dynamically with seller email.')}}</small>

                            </div>
                            <button type="submit" class="btn btn-primary mt-4 pr-4 pl-4">{{__('Update')}}</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
@section('script')
    <x-media.js />
    <x-summernote.js/>
    <script>
        $(document).ready(function () {
            //to do:
        });
    </script>
@endsection
