@extends('layout.app')

@section('content')
    @php
        $auto_inactive = json_decode($smsSetting[1]->tamplate_body);
        $other_income = json_decode($smsSetting[4]->tamplate_body);
        $support = json_decode($smsSetting[5]->tamplate_body);
        $bill_generate = json_decode($smsSetting[7]->tamplate_body);
        $bill_reminder = json_decode($smsSetting[8]->tamplate_body);
        $temporary_extended = json_decode($smsSetting[9]->tamplate_body);
        $expired = json_decode($smsSetting[10]->tamplate_body);
        $token_create = json_decode($smsSetting[11]->tamplate_body);
        $pop_expiary_exception = json_decode($smsSetting[12]->tamplate_body);
        $reseller_recharge = json_decode($smsSetting[13]->tamplate_body);
        $disable_customer = json_decode($smsSetting[14]->tamplate_body);
        $otc_payment = json_decode($smsSetting[15]->tamplate_body);
        $package_change_payment = json_decode($smsSetting[16]->tamplate_body);
        $billing_cycle_change_payment = json_decode($smsSetting[17]->tamplate_body);
        $new_customer_payment_sms = json_decode($smsSetting[18]->tamplate_body);
        $advanced_payment_sms = json_decode($smsSetting[19]->tamplate_body);
        $token_on_create_customer_send_sms = json_decode($smsSetting[20]->tamplate_body);
        $token_assign_employee_send_sms = json_decode($smsSetting[21]->tamplate_body);
        $token_assign_customer_send_sms = json_decode($smsSetting[22]->tamplate_body);
        $token_close_customer_send_sms = json_decode($smsSetting[23]->tamplate_body);
        $token_note_customer_sms = json_decode($smsSetting[24]->tamplate_body);
        $token_re_assign_employee_sms = json_decode($smsSetting[25]->tamplate_body);
        $reseller_recharge_sms = json_decode($smsSetting[26]->tamplate_body);
        $default_bill_payment = json_decode($smsSetting[3]->tamplate_body);
        $default_welcome_sms = json_decode($smsSetting[0]->tamplate_body);
    @endphp
    <div class="card">
        <div class="card-body">


            <div class="card card-secondary card-tabs">
                <div class="card-header p-0 pt-1">
                    @include('smsSetting.Tabs')
                </div>
                <div class="card-body ">
                    <div class="tab-content" id="custom-tabs-one-tabContent">
                        <div class="tab-pane fade show active" id="custom-tabs-one-auto-wellcome-sms" role="tabpanel"
                            aria-labelledby="custom-tabs-one-auto-wellcome-sms-tab">
                            <div class="container col-md-12">
                                @include('smsSetting.WelcomeSms')
                            </div>
                        </div>
                        <div class="tab-pane fade " id="custom-tabs-one-auto-inactive" role="tabpanel"
                            aria-labelledby="custom-tabs-one-auto-inactive-tab">
                            @include('smsSetting.AutoInactive')
                        </div>
                        <div class="tab-pane fade" id="custom-tabs-one-due-bill" role="tabpanel"
                            aria-labelledby="custom-tabs-one-due-bill-tab">
                            @include('smsSetting.DueBIll')
                        </div>
                        <div class="tab-pane fade" id="custom-tabs-one-bill-payment" role="tabpanel"
                            aria-labelledby="custom-tabs-one-bill-payment-tab">
                            @include('smsSetting.BillPayment')
                        </div>
                        <div class="tab-pane fade" id="custom-tabs-one-others-collection" role="tabpanel"
                            aria-labelledby="custom-tabs-one-others-collection-tab">
                            @include('smsSetting.OthersCollection')
                        </div>

                        <div class="tab-pane fade " id="custom-tabs-one-support" role="tabpanel"
                            aria-labelledby="custom-tabs-one-support-tab">
                            @include('smsSetting.Support')
                        </div>
                        <div class="tab-pane fade" id="custom-tabs-one-reseller-payment" role="tabpanel"
                            aria-labelledby="custom-tabs-one-reseller-payment-tab">

                            @include('smsSetting.ResellerPayment')

                        </div>


                        <div class="tab-pane fade" id="custom-tabs-one-generate-bill" role="tabpanel"
                            aria-labelledby="custom-tabs-one-generate-bill-tab">

                            <div class="container col-md-12">
                                @include('smsSetting.GenerateBill')
                            </div>
                        </div>
                        <div class="tab-pane fade" id="custom-tabs-one-bill-remember" role="tabpanel"
                            aria-labelledby="custom-tabs-one-bill-remember-tab">
                            <div class="container col-md-12">
                                @include('smsSetting.BillReminder')

                            </div>
                        </div>
                        <div class="tab-pane fade" id="custom-tabs-one-temporary-extend" role="tabpanel"
                            aria-labelledby="custom-tabs-one-temporary-extend-tab">
                            <div class="container col-md-12">
                                @include('smsSetting.TemporaryExtend')
                            </div>
                        </div>
                        <div class="tab-pane fade" id="custom-tabs-one-expire" role="tabpanel"
                            aria-labelledby="custom-tabs-one-expire-tab">
                            @include('smsSetting.Expired')
                        </div>
                        <div class="tab-pane fade" id="custom-tabs-one-token-create" role="tabpanel"
                            aria-labelledby="custom-tabs-one-token-create-tab">
                            @include('smsSetting.Token')
                        </div>
                        <div class="tab-pane fade" id="custom-tabs-one-reseller-recharge" role="tabpanel"
                            aria-labelledby="custom-tabs-one-reseller-recharge-tab">
                            <div class="container col-md-12">
                                @include('smsSetting.ResellerCustomerRecharge')
                            </div>
                        </div>
                        <div class="tab-pane fade" id="custom-tabs-one-disable-customer" role="tabpanel"
                            aria-labelledby="custom-tabs-one-disable-customer-tab">
                            <div class="container col-md-12">
                                @include('smsSetting.Disable')

                            </div>
                        </div>
                        <div class="tab-pane fade" id="custom-tabs-one-reseller-recharge-from-admin" role="tabpanel"
                            aria-labelledby="custom-tabs-one-reseller-recharge-from-admin-tab">
                            <div class="container col-md-12">
                                @include('smsSetting.ResellerRecharge')

                            </div>
                        </div>
                    </div>
                </div>

            </div>

        </div>


    </div>
    <style>
        th,
        td {
            padding-top: 5px;
            padding-bottom: 5px;
            padding-left: 10px;
            padding-right: 0px;
        }
    </style>
@endsection

@section('ajax')
    @include('smsSetting.JsFile.smsSetting')
@endsection
