KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/account.appointkrypt.com/resources/views/business/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/account.appointkrypt.com/resources/views/business/manage.blade.php
@extends('layouts.main')

@section('page-title')
    {{ __('Manage Business') }}
@endsection
@section('page-breadcrumb')
    {{ $business->name }},
    {{ __('Manage Business') }}
@endsection
@section('page-action')
@endsection

@push('css')
    <link rel="stylesheet" href="{{ asset('assets/css/main.css') }}">
@endpush

@section('content')
    <div class="page-header pt-3">
        <div class="page-block">
            <div class="row gy-4 align-items-center">
                <div class="col-md-2">
                    <h3 class="mb-0 text-primary">{{ __(ucfirst($business->name)) }}</h3>
                </div>
                <div class="col-md-10">
                    <ul class="nav nav-pills nav-fill information-tab" id="pills-tab" role="tablist">
                        <li class="nav-item" role="presentation">
                            <button class="nav-link @if (!session('tab') or session('tab') and session('tab') == 1) active @endif" id="theme-setting-tab"
                                data-bs-toggle="pill" data-bs-target="#theme-setting"
                                type="button">{{ __('Location') }}</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link @if (session('tab') and session('tab') == 5) active @endif" id="seo-setting-tab"
                                data-bs-toggle="pill" data-bs-target="#seo-setting"
                                type="button">{{ __('Category') }}</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link @if (session('tab') and session('tab') == 2) active @endif"
                                id="details-setting-tab" data-bs-toggle="pill" data-bs-target="#details-setting"
                                type="button">{{ __('Service') }}</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link @if (session('tab') and session('tab') == 3) active @endif" id="domain-setting-tab"
                                data-bs-toggle="pill" data-bs-target="#domain-setting"
                                type="button">{{ __('Staff') }}</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link @if (session('tab') and session('tab') == 4) active @endif" id="block-setting-tab"
                                data-bs-toggle="pill" data-bs-target="#block-setting"
                                type="button">{{ __('Business Hours') }}</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link @if (session('tab') and session('tab') == 6) active @endif"
                                id="holiday-setting-tab" data-bs-toggle="pill" data-bs-target="#holiday-setting"
                                type="button">{{ __('Business Holiday') }}</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link @if (session('tab') and session('tab') == 7) active @endif" id="custom-setting-tab"
                                data-bs-toggle="pill" data-bs-target="#custom-setting"
                                type="button">{{ __('Custom Domain') }}</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link @if (session('tab') and session('tab') == 8) active @endif"
                                id="capacity-setting-tab" data-bs-toggle="pill" data-bs-target="#capacity-setting"
                                type="button">{{ __('Appointment Slot Capacity') }}</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link @if (session('tab') and session('tab') == 9) active @endif"
                                id="reminder-setting-tab" data-bs-toggle="pill" data-bs-target="#reminder-setting"
                                type="button">{{ __('Appointment Reminder') }}</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link @if (session('tab') and session('tab') == 10) active @endif" id="files-setting-tab"
                                data-bs-toggle="pill" data-bs-target="#files-setting"
                                type="button">{{ __('Files') }}</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link @if (session('tab') and session('tab') == 11) active @endif"
                                id="custom-field-setting-tab" data-bs-toggle="pill" data-bs-target="#custom-field-setting"
                                type="button">{{ __('Custom Field') }}</button>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <!-- [ sample-page ] start -->
        <div class="col-sm-12">
            <div class="row">
                <div class="col-lg-12">
                    <div class="tab-content" id="pills-tabContent">
                        <div class="tab-pane fade @if (!session('tab') or session('tab') and session('tab') == 1) active show @endif" id="theme-setting"
                            role="tabpanel" aria-labelledby="pills-user-tab-1">
                            @permission('location create')
                                <div class="text-end my-3 mx-4">
                                    <a href="#" class="btn btn-sm btn-primary" data-ajax-popup="true" data-size="md"
                                        data-title="{{ __('Create New Location') }}"
                                        data-url="{{ route('location.create', ['business_id' => $business->id]) }}"
                                        data-bs-toggle="tooltip" data-bs-original-title="{{ __('Create') }}">
                                        <i class="ti ti-plus"></i>
                                    </a>
                                </div>
                            @endpermission
                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="card">
                                        <div class="card-body table-border-style">
                                            <div class="table-responsive">
                                                <table class="table mb-0 pc-dt-simple" id="datatable1">
                                                    <thead>
                                                        <tr>
                                                            <th>{{ __('Name') }}</th>
                                                            <th>{{ __('Phone') }}</th>
                                                            <th>{{ __('Address') }}</th>
                                                            @if (Laratrust::hasPermission('location edit') || Laratrust::hasPermission('location delete'))
                                                                <th>{{ __('Action') }}</th>
                                                            @endif
                                                        </tr>
                                                    </thead>
                                                    @foreach ($locations as $location)
                                                        <tbody>
                                                            <tr>
                                                                <td>
                                                                    <div class="d-flex align-items-center">
                                                                        <img src="{{ check_file($location->image) ? get_file($location->image) : get_file('uploads/default/avatar.png') }}"
                                                                            class="wid-30 rounded-circle me-3"
                                                                            alt="avatar image" height="30">
                                                                        <p class="mb-0">{{ $location->name }}</p>
                                                                    </div>
                                                                </td>
                                                                <td>{{ $location->phone }}</td>
                                                                <td>{{ $location->address }}</td>
                                                                <td>
                                                                    <span>
                                                                        @permission('location edit')
                                                                            <div class="action-btn bg-info ms-2">
                                                                                <a href="#"
                                                                                    class="mx-3 btn btn-sm d-inline-flex align-items-center"
                                                                                    data-url="{{ route('location.edit', $location->id) }}"
                                                                                    class="dropdown-item"
                                                                                    data-ajax-popup="true"
                                                                                    data-title="{{ __('Edit Location') }}"
                                                                                    data-bs-toggle="tooltip"
                                                                                    data-bs-original-title="{{ __('Edit') }}">
                                                                                    <span class="text-white"> <i
                                                                                            class="ti ti-edit"></i></span></a>
                                                                            </div>
                                                                        @endpermission
                                                                        @permission('location delete')
                                                                            <div class="action-btn bg-danger ms-2">
                                                                                {{ Form::open(['route' => ['location.destroy', $location->id], 'class' => 'm-0']) }}
                                                                                @method('DELETE')
                                                                                <a href="#"
                                                                                    class="mx-3 btn btn-sm  align-items-center bs-pass-para show_confirm"
                                                                                    data-bs-toggle="tooltip" title=""
                                                                                    data-bs-original-title="Delete"
                                                                                    aria-label="Delete"
                                                                                    data-confirm-yes="delete-form-{{ $location->id }}"><i
                                                                                        class="ti ti-trash text-white text-white"></i></a>
                                                                                {{ Form::close() }}
                                                                            </div>
                                                                        @endpermission
                                                                    </span>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    @endforeach
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane fade @if (session('tab') and session('tab') == 2) show active @endif"
                            id="details-setting" role="tabpanel" aria-labelledby="pills-user-tab-2">
                            @permission('service create')
                                <div class="text-end my-3 mx-4">
                                    <a href="#" class="btn btn-sm btn-primary" data-ajax-popup="true" data-size="lg"
                                        data-title="{{ __('Create New Service') }}" data-bs-toggle="tooltip"
                                        data-bs-original-title="{{ __('Create') }}"
                                        data-url="{{ route('service.create', ['business_id' => $business->id]) }}"
                                        id="create_business_data" title="{{ __('Create') }}">
                                        <i class="ti ti-plus"></i>
                                    </a>
                                </div>
                            @endpermission
                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="card ">
                                        <div class="card-body table-border-style">
                                            <div class="table-responsive">
                                                <table class="table mb-0 pc-dt-simple" id="datatable3">
                                                    <thead>
                                                        <tr>
                                                            <th>{{ __('Name') }}</th>
                                                            <th>{{ __('Category') }}</th>
                                                            <th>{{ __('Price') }}</th>
                                                            <th>{{ __('Duration') }}</th>
                                                            @if (Laratrust::hasPermission('service edit') || Laratrust::hasPermission('service delete'))
                                                                <th>{{ __('Action') }}</th>
                                                            @endif
                                                        </tr>
                                                    </thead>
                                                    @foreach ($services as $service)
                                                        <tbody>
                                                            <tr>
                                                                <td>
                                                                    <div class="d-flex align-items-center">
                                                                        <img src="{{ check_file($service->image) ? get_file($service->image) : get_file('uploads/default/avatar.png') }}"
                                                                            class="wid-30 rounded-circle me-3"
                                                                            alt="avatar image" height="30">
                                                                        <p class="mb-0">{{ $service->name }}</p>
                                                                    </div>
                                                                </td>
                                                                <td>{{ $service->Category->name }}</td>
                                                                <td>{{ $service->price }}</td>
                                                                <td>{{ $service->duration }}</td>
                                                                <td>
                                                                    <span>
                                                                        @permission('service edit')
                                                                            <div class="action-btn bg-info ms-2">
                                                                                <a href="#"
                                                                                    class="mx-3 btn btn-sm d-inline-flex align-items-center"
                                                                                    data-url="{{ route('service.edit', $service->id) }}"
                                                                                    class="dropdown-item"
                                                                                    data-ajax-popup="true"
                                                                                    data-title="{{ __('Edit Service') }}"
                                                                                    data-bs-toggle="tooltip"
                                                                                    data-bs-original-title="{{ __('Edit') }}">
                                                                                    <span class="text-white"> <i
                                                                                            class="ti ti-edit"></i></span></a>
                                                                            </div>
                                                                        @endpermission
                                                                        @permission('service delete')
                                                                            <div class="action-btn bg-danger ms-2">
                                                                                {{ Form::open(['route' => ['service.destroy', $service->id], 'class' => 'm-0']) }}
                                                                                @method('DELETE')
                                                                                <a href="#"
                                                                                    class="mx-3 btn btn-sm  align-items-center bs-pass-para show_confirm"
                                                                                    data-bs-toggle="tooltip" title=""
                                                                                    data-bs-original-title="Delete"
                                                                                    aria-label="Delete"
                                                                                    data-confirm-yes="delete-form-{{ $service->id }}"><i
                                                                                        class="ti ti-trash text-white text-white"></i></a>
                                                                                {{ Form::close() }}
                                                                            </div>
                                                                        @endpermission
                                                                    </span>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    @endforeach
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane fade @if (session('tab') and session('tab') == 3) show active @endif"
                            id="domain-setting" role="tabpanel" aria-labelledby="pills-user-tab-3">
                            @permission('staff create')
                                <div class="text-end my-3 mx-4">
                                    <a href="#" class="btn btn-sm btn-primary" data-ajax-popup="true" data-size="md"
                                        data-title="{{ __('Create New Staff') }}"
                                        data-url="{{ route('staff.create', ['business_id' => $business->id]) }}"
                                        data-bs-toggle="tooltip" data-bs-original-title="{{ __('Create') }}">
                                        <i class="ti ti-plus"></i>
                                    </a>
                                </div>
                            @endpermission
                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="card">
                                        <div class="card-body table-border-style">
                                            <div class="table-responsive">
                                                <table class="table mb-0 pc-dt-simple" id="datatable4">
                                                    <thead>
                                                        <tr>
                                                            <th>{{ __('Name') }}</th>
                                                            <th>{{ __('Email') }}</th>
                                                            <th>{{ __('Location') }}</th>
                                                            <th>{{ __('Service') }}</th>
                                                            @if (Laratrust::hasPermission('staff edit') || Laratrust::hasPermission('staff delete'))
                                                                <th>{{ __('Action') }}</th>
                                                            @endif
                                                        </tr>
                                                    </thead>
                                                    @foreach ($staffes as $staff)
                                                        <tbody>
                                                            <tr>
                                                                <td>
                                                                    <div class="d-flex align-items-center">
                                                                        <img src="{{ check_file($staff->user->avatar) ? get_file($staff->user->avatar) : get_file('uploads/default/avatar.png') }}"
                                                                            class="wid-30 rounded-circle me-3"
                                                                            alt="avatar image" height="30">
                                                                        <p class="mb-0">{{ $staff->name }}</p>
                                                                    </div>
                                                                </td>
                                                                <td>{{ $staff->user->email }}</td>
                                                                <td>{{ $staff->Location()->pluck('name')->implode(', ') }}
                                                                </td>
                                                                <td>{{ $staff->Service()->pluck('name')->implode(', ') }}
                                                                </td>
                                                                <td>
                                                                    <span>
                                                                        @permission('staff edit')
                                                                            <div class="action-btn bg-info ms-2">
                                                                                <a href="#"
                                                                                    class="mx-3 btn btn-sm d-inline-flex align-items-center"
                                                                                    data-url="{{ route('staff.edit', $staff->id) }}"
                                                                                    class="dropdown-item"
                                                                                    data-ajax-popup="true"
                                                                                    data-title="{{ __('Edit Staff') }}"
                                                                                    data-bs-toggle="tooltip"
                                                                                    data-bs-original-title="{{ __('Edit') }}">
                                                                                    <span class="text-white"> <i
                                                                                            class="ti ti-edit"></i></span></a>
                                                                            </div>
                                                                        @endpermission
                                                                        @permission('staff delete')
                                                                            <div class="action-btn bg-danger ms-2">
                                                                                {{ Form::open(['route' => ['staff.destroy', $staff->id], 'class' => 'm-0']) }}
                                                                                @method('DELETE')
                                                                                <a href="#"
                                                                                    class="mx-3 btn btn-sm  align-items-center bs-pass-para show_confirm"
                                                                                    data-bs-toggle="tooltip" title=""
                                                                                    data-bs-original-title="Delete"
                                                                                    aria-label="Delete"
                                                                                    data-confirm-yes="delete-form-{{ $staff->id }}"><i
                                                                                        class="ti ti-trash text-white text-white"></i></a>
                                                                                {{ Form::close() }}
                                                                            </div>
                                                                        @endpermission
                                                                    </span>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    @endforeach
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>


                        <div class="tab-pane fade @if (session('tab') and session('tab') == 5) show active @endif" id="seo-setting"
                            role="tabpanel" aria-labelledby="pills-user-tab-5">
                            @permission('category create')
                                <div class="text-end my-3 mx-4">
                                    <a href="#" class="btn btn-sm btn-primary" data-ajax-popup="true" data-size="md"
                                        data-title="{{ __('Create New category') }}"
                                        data-url="{{ route('category.create', ['business_id' => $business->id]) }}"
                                        data-bs-toggle="tooltip" data-bs-original-title="{{ __('Create') }}">
                                        <i class="ti ti-plus"></i>
                                    </a>
                                </div>
                            @endpermission
                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="card">
                                        <div class="card-body table-border-style">
                                            <div class="table-responsive">
                                                <table class="table mb-0 pc-dt-simple" id="datatable2">
                                                    <thead>
                                                        <tr>
                                                            <th>{{ __('Name') }}</th>
                                                            @if (Laratrust::hasPermission('category edit') || Laratrust::hasPermission('category delete'))
                                                                <th>{{ __('Action') }}</th>
                                                            @endif
                                                        </tr>
                                                    </thead>
                                                    @foreach ($categories as $category)
                                                        <tbody>
                                                            <tr>
                                                                <td> {{ $category->name }} </td>
                                                                <td>
                                                                    <span>
                                                                        @permission('category edit')
                                                                            <div class="action-btn bg-info ms-2">
                                                                                <a href="#"
                                                                                    class="mx-3 btn btn-sm d-inline-flex align-items-center"
                                                                                    data-url="{{ route('category.edit', $category->id) }}"
                                                                                    class="dropdown-item"
                                                                                    data-ajax-popup="true"
                                                                                    data-title="{{ __('Edit Category') }}"
                                                                                    data-bs-toggle="tooltip"
                                                                                    data-bs-original-title="{{ __('Edit') }}">
                                                                                    <span class="text-white"> <i
                                                                                            class="ti ti-edit"></i></span></a>
                                                                            </div>
                                                                        @endpermission
                                                                        @permission('category delete')
                                                                            <div class="action-btn bg-danger ms-2">
                                                                                {{ Form::open(['route' => ['category.destroy', $category->id], 'class' => 'm-0']) }}
                                                                                @method('DELETE')
                                                                                <a href="#"
                                                                                    class="mx-3 btn btn-sm  align-items-center bs-pass-para show_confirm"
                                                                                    data-bs-toggle="tooltip" title=""
                                                                                    data-bs-original-title="Delete"
                                                                                    aria-label="Delete"
                                                                                    data-confirm-yes="delete-form-{{ $category->id }}"><i
                                                                                        class="ti ti-trash text-white text-white"></i></a>
                                                                                {{ Form::close() }}
                                                                            </div>
                                                                        @endpermission
                                                                    </span>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    @endforeach
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane fade @if (session('tab') and session('tab') == 4) show active @endif"
                            id="block-setting" role="tabpanel" aria-labelledby="pills-user-tab-4">
                            {{ Form::open(['route' => ['business-hours.store', 'business_id' => $business->id], 'enctype' => 'multipart/form-data']) }}
                            <div class="row business-hrs">
                                <div class="col-sm-12">
                                    @php
                                        $days = App\Models\BusinessHours::$weekdays;
                                    @endphp
                                    <div class="card">
                                        @foreach ($days as $index => $day)
                                            <div>
                                                @php
                                                    $data = App\Models\BusinessHours::dayWiseData($day, $business->id);
                                                @endphp
                                                <table class="table  mb-0">
                                                    <tbody class="">
                                                        <tr>
                                                            <td>
                                                                <h5 class="text-primary mb-0 capitalize">
                                                                    {{ ++$index . '.' . $day }}</h5>
                                                            </td>
                                                            <td>
                                                                <input type="time" name="{{ $day }}[start]"
                                                                    value="{{ !empty($data['start_time']) ? $data['start_time'] : '' }}"
                                                                    class="form-control day_disable_{{ $index }}"
                                                                    {{ (!empty($data['day_off']) ? $data['day_off'] : '') == 'on' ? 'disabled' : '' }}>
                                                            </td>
                                                            <td>
                                                                <input type="time" name="{{ $day }}[end]"
                                                                    value="{{ !empty($data['end_time']) ? $data['end_time'] : '' }}"
                                                                    class="form-control day_disable_{{ $index }}"
                                                                    {{ (!empty($data['day_off']) ? $data['day_off'] : '') == 'on' ? 'disabled' : '' }}>
                                                            </td>
                                                            <td>
                                                                <div class="form-control">
                                                                    <input class="form-check-input day_off"
                                                                        type="checkbox" data-id={{ $index }}
                                                                        name="{{ $day }}[day_off]"
                                                                        {{ (!empty($data['day_off']) ? $data['day_off'] : '') == 'on' ? 'checked' : '' }}>
                                                                    <label class="form-check-label"
                                                                        for="inlineFormCheck ">
                                                                        {{ __(' Add day off') }}
                                                                    </label>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </div>
                                            {{-- hours end --}}

                                            {{-- repeater start --}}
                                            <div class="repeater day_off_{{ $index }} {{ (!empty($data['day_off']) ? $data['day_off'] : '') == 'on' ? 'd-none' : '' }}"
                                                id="{{ $day }}_break_business"
                                                data-value="{{ !empty($data['break_hours']) ? $data['break_hours'] : '' }}">
                                                <table class="table  mb-0"
                                                    data-repeater-list="{{ $day }}[repeater]">
                                                    <tbody class="" data-repeater-item>
                                                        <tr>
                                                            <td>
                                                                <p class="text-danger">
                                                                    {{ __('Breck') }}</p>
                                                            <td>
                                                                <input type="time" name="start"
                                                                    class="form-control repeaterTimeField">
                                                            </td>
                                                            <td>
                                                                <input type="time" name="end"
                                                                    class="form-control repeaterTimeField">
                                                            </td>
                                                            <td>
                                                                <a class="bs-pass-para repeater-action-btn"
                                                                    data-repeater-delete>
                                                                    <div
                                                                        class="repeater-action-btn action-btn bg-danger ms-2">
                                                                        <i class="ti ti-trash text-white text-white"></i>
                                                                    </div>
                                                                </a>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>

                                                <div class="add-break-btn mt-2">
                                                    <span data-repeater-create="">
                                                        <i class="fas fa-plus-circle"></i>
                                                        {{ __('Add break') }}
                                                    </span>
                                                </div>
                                            </div>
                                            {{-- repeater end --}}
                                        @endforeach
                                        <div class="form-group col-md-12 text-end card-footer mb-0">
                                            <input class="btn btn-print-invoice  btn-primary " type="submit"
                                                value="{{ __('Save Changes') }}">
                                        </div>
                                    </div>

                                </div>
                            </div>
                            {{ Form::close() }}
                        </div>

                        <div class="tab-pane fade @if (session('tab') and session('tab') == 6) show active @endif"
                            id="holiday-setting" role="tabpanel" aria-labelledby="pills-user-tab-4">
                            @permission('holiday create')
                                <div class="text-end my-3 mx-4">
                                    <a href="#" class="btn btn-sm btn-primary" data-ajax-popup="true" data-size="md"
                                        data-title="{{ __('Create New Holiday') }}"
                                        data-url="{{ route('business-holiday.create', ['business_id' => $business->id]) }}"
                                        data-bs-toggle="tooltip" data-bs-original-title="{{ __('Create') }}">
                                        <i class="ti ti-plus"></i>
                                    </a>
                                </div>
                            @endpermission
                            <div class="row business-hrs">
                                <div class="col-md-8">
                                    <div class="card">
                                        <div class="card-header">
                                            <div class="row">
                                                <div class="col-lg-6">
                                                    <h5>{{ __('Calendar') }}</h5>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="card-body">
                                            <div id='calendar' class='calendar' data-toggle="calendar"></div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-4">
                                    <div class="card">
                                        <div class="card-body">
                                            <h4 class="mb-4">{{ __('Holidays') }}</h4>
                                            <ul class="event-cards list-group list-group-flush mt-3 w-100">
                                                @foreach ($businessholidays as $businessholiday)
                                                    @php
                                                        $month = date('m', strtotime($businessholiday->date));
                                                    @endphp
                                                    @if ($month == date('m'))
                                                        <li class="list-group-item card mb-3">
                                                            <div class="row align-items-center justify-content-between">
                                                                <div class="col-auto mb-3 mb-sm-0">
                                                                    <div class="d-flex align-items-center">
                                                                        <div class="theme-avtar bg-primary">
                                                                            <i class="ti ti-calendar"></i>
                                                                        </div>
                                                                        <div class="ms-3">
                                                                            <h6 class="m-0">
                                                                                <a href="#"
                                                                                    class="fc-daygrid-event sp-inheri">
                                                                                    <div class="fc-event-title-container">
                                                                                        <div
                                                                                            class="fc-event-title text-dark">
                                                                                            {{ $businessholiday->title }}
                                                                                        </div>
                                                                                    </div>
                                                                                </a>
                                                                            </h6>
                                                                            <small
                                                                                class="text-muted">{{ $businessholiday->date }}</small>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </li>
                                                    @endif
                                                @endforeach
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane fade @if (session('tab') and session('tab') == 7) show active @endif"
                            id="custom-setting" role="tabpanel" aria-labelledby="pills-user-tab-4">
                            <div class="row business-hrs">
                                <div class="col-md-12">
                                    <div class="card">
                                        <div class="card-header">
                                            <div class="row">
                                                <div class="col-lg-12">
                                                    <h5>{{ __('Custom Domain') }}</h5>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="card-body">
                                            {{ Form::open(['route' => ['business.domain-setting', $business->id], 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
                                            <div class="theme-detail-card">
                                                <div class="row gy-3">
                                                    {{-- Start of Custom Domain/Business Link/Sub Domain --}}
                                                    <div class="col-12">
                                                        <div class="row gy-3">
                                                            <div
                                                                class="col-auto {{ isset($company_settings['enable_businesslink']) && $company_settings['enable_businesslink'] == 'on' ? 'active' : '' }}">
                                                                <label for="enable_storelink"
                                                                    class="btn btn-secondary {{ isset($company_settings['enable_businesslink']) && $company_settings['enable_businesslink'] == 'on' ? 'active' : '' }}">
                                                                    <input type="radio"
                                                                        class="btn btn-secondary domain_click d-none"
                                                                        name="enable_domain" value="enable_businesslink"
                                                                        id="enable_storelink"
                                                                        {{ isset($company_settings['enable_businesslink']) && $company_settings['enable_businesslink'] == 'on' ? 'checked' : '' }} /><i
                                                                        class="me-2" data-feather="folder"></i>
                                                                    {{ __('Business Link') }}
                                                                </label>
                                                            </div>

                                                            <div
                                                                class="col-auto {{ isset($company_settings['enable_domain']) && $company_settings['enable_domain'] == 'on' ? 'active' : '' }}">
                                                                <label for="enable_domain"
                                                                    class="btn btn-secondary {{ isset($company_settings['enable_domain']) && $company_settings['enable_domain'] == 'on' ? 'active' : '' }}">
                                                                    <input type="radio"
                                                                        class="domain_click d-none btn btn-secondary"
                                                                        name="enable_domain" value="enable_domain"
                                                                        id="enable_domain"
                                                                        {{ isset($company_settings['enable_domain']) && $company_settings['enable_domain'] == 'on' ? 'checked' : '' }} /><i
                                                                        class="me-2" data-feather="folder"></i>
                                                                    {{ __('Domain') }}
                                                                </label>
                                                            </div>

                                                            <div class="col-auto"
                                                                {{ isset($company_settings['enable_subdomain']) && $company_settings['enable_subdomain'] == 'on' ? 'active' : '' }}>
                                                                <label for="enable_subdomain"
                                                                    class="btn btn-secondary {{ isset($company_settings['enable_subdomain']) && $company_settings['enable_subdomain'] == 'on' ? 'active' : '' }}">
                                                                    <input type="radio"
                                                                        class="domain_click d-none btn btn-secondary"
                                                                        name="enable_domain" value="enable_subdomain"
                                                                        id="enable_subdomain"
                                                                        {{ isset($company_settings['enable_subdomain']) && $company_settings['enable_subdomain'] == 'on' ? 'checked' : '' }}><i
                                                                        class="me-2" data-feather="folder"></i>
                                                                    {{ __('Sub Domain') }}
                                                                </label>
                                                            </div>

                                                        </div>
                                                    </div>

                                                    <div class="col-12">
                                                        <div class="form-group" id="StoreLink"
                                                            style="{{ isset($company_settings['enable_businesslink']) && $company_settings['enable_businesslink'] == 'on' ? 'display: block' : 'display: none' }}">
                                                            <label class="form-label">{{ __('Business Link:') }}</label>
                                                            <div class="row gy-2">
                                                                <div class="col-xl-11 col-lg-9 col-md-8">
                                                                    <input type="text"
                                                                        class="form-control d-inline-block" id="myInput"
                                                                        value="{{ $business_url }}" readonly />
                                                                </div>
                                                                <div class="col-xl-1 col-lg-3 col-md-4">
                                                                    <button type="button" class="btn btn-primary w-100"
                                                                        data-bs-toggle="tooltip"
                                                                        data-bs-placement="bottom"
                                                                        data-bs-original-title="{{ __('Copy Business Link') }}"
                                                                        title="{{ __('Copy Business Link') }}"
                                                                        id="button-addon2" onclick="myFunction()"><i
                                                                            class="far fa-copy"></i></button>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        {{-- custom domain view --}}
                                                        <div class="form-group col-md-12 domain"
                                                            style="{{ isset($company_settings['enable_domain']) && $company_settings['enable_domain'] == 'on' ? 'display:block' : 'display:none' }}">
                                                            {{ Form::label('business_domain', __('Custom Domain'), ['class' => 'form-label']) }}
                                                            {{ Form::text('domains', isset($company_settings['domains']) ? $company_settings['domains'] : '', ['class' => 'form-control', 'placeholder' => __('xyz.com')]) }}
                                                        </div>
                                                        @if ($domainPointing == 1)
                                                            <div class="form-group col-md-12 text-sm mt-3" id="domainnote"
                                                                style="display: none">
                                                                <span><b class="text-success">{{ __('Note : Before add Custom Domain, your domain A record is pointing to our server IP :') }}{{ $serverIp }}|
                                                                        {{ __('Your Custom Domain IP Is This: ') }}{{ $domainip }}</b></span>
                                                                <br>
                                                            </div>
                                                        @else
                                                            <div class="form-group col-md-12 text-sm mt-3" id="domainnote"
                                                                style="display: none">
                                                                <span><b>{{ __('Note : Before add Custom Domain, your domain A record is pointing to our server IP :') }}{{ $serverIp }}|</b>
                                                                    <b
                                                                        class="text-danger">{{ __('Your Custom Domain IP Is This: ') }}{{ $domainip }}</b></span>
                                                                <br>
                                                            </div>
                                                        @endif
                                                        {{-- End custom domain --}}

                                                        <div class="form-group col-md-12 sundomain"
                                                            style="{{ isset($company_settings['enable_subdomain']) && $company_settings['enable_subdomain'] == 'on' ? 'display:block' : 'display:none' }}">
                                                            {{ Form::label('business_subdomain', __('Sub Domain'), ['class' => 'form-label']) }}
                                                            <div class="input-group">
                                                                {{ Form::text('subdomain', $business->slug, ['class' => 'form-control', 'placeholder' => __('Enter Domain'), 'readonly']) }}
                                                                <div class="input-group-append">
                                                                    <span class="input-group-text h-44 py-1"
                                                                        id="basic-addon2">.{{ $subdomain_name }}</span>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        @if ($subdomainPointing == 1)
                                                            <div class="text-sm mt-2" id="subdomainnote"
                                                                style="display: none">
                                                                <span><b class="text-success">{{ __('Note : Before add Sub Domain, your domain A record is pointing to our server IP :') }}{{ $serverIp }}|
                                                                        {{ __('Your Sub Domain IP Is This: ') }}{{ $domainip }}</b></span>
                                                            </div>
                                                        @else
                                                            <div class="text-sm mt-2" id="subdomainnote"
                                                                style="display: none">
                                                                <span><b>{{ __('Note : Before add Sub Domain, your domain A record is pointing to our server IP :') }}{{ $serverIp }}|</b>
                                                                    <b
                                                                        class="text-danger">{{ __('Your Sub Domain IP Is This: ') }}{{ $domainip }}</b></span>
                                                            </div>
                                                        @endif

                                                    </div>
                                                    <div class="col-md-12 text-end mt-3">
                                                        <input class="btn btn-print-invoice  btn-primary " type="submit"
                                                            value="{{ __('Save Changes') }}">
                                                    </div>
                                                </div>
                                            </div>
                                            {{ Form::close() }}
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane fade @if (session('tab') and session('tab') == 8) show active @endif"
                            id="capacity-setting" role="tabpanel" aria-labelledby="pills-user-tab-4">
                            <div class="row business-hrs">
                                <div class="col-md-12">
                                    <div class="card">
                                        <div class="card-header">
                                            <div class="row">
                                                <div class="col-lg-12">
                                                    <h5>{{ __('Appointment Slot Capacity Setting') }}</h5>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="card-body">
                                            {{ Form::open(['route' => ['slot.capacity-setting', $business->id], 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
                                            <div class="theme-detail-card">
                                                <div class="row gy-3">
                                                    <div class="col-12">
                                                        <div class="form-group" id="StoreLink">
                                                            <label
                                                                class="form-label">{{ __('Appointment Slot Capacity:') }}</label>
                                                            <div class="row gy-2">
                                                                <input type="number" class="form-control d-inline-block"
                                                                    id="maximum_slot" name="maximum_slot"
                                                                    value="{{ isset($company_settings['maximum_slot']) ? $company_settings['maximum_slot'] : '' }}"
                                                                    placeholder="Enter maximum appointment slot number"
                                                                    required />
                                                            </div>
                                                        </div>

                                                    </div>
                                                    <div class="col-md-12 text-end mt-3">
                                                        <input class="btn btn-print-invoice  btn-primary " type="submit"
                                                            value="{{ __('Save Changes') }}">
                                                    </div>
                                                </div>
                                            </div>
                                            {{ Form::close() }}
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane fade @if (session('tab') and session('tab') == 9) show active @endif"
                            id="reminder-setting" role="tabpanel" aria-labelledby="pills-user-tab-4">
                            <div class="row business-hrs">
                                <div class="col-md-12">
                                    <div class="card">
                                        <div class="card-header">
                                            <div class="row">
                                                <div class="col-lg-12">
                                                    <h5>{{ __('Appointment Reminder') }}</h5>
                                                    <small>{{ __('To enable automated appointment reminders, you need to set up a cron job on your server. (Command: * * * * * domain && php artisan schedule:run >/dev/null 2>&1)') }}</small>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="card-body">
                                            {{ Form::open(['route' => ['appointment.reminder-setting', $business->id], 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
                                            <div class="theme-detail-card">
                                                <div class="row gy-3">
                                                    <div class="col-12">
                                                        <div class="form-group" id="StoreLink">
                                                            <label
                                                                class="form-label">{{ __('Reminder Interval:') }}</label>
                                                            <div class="row gy-2">
                                                                <input type="number" class="form-control d-inline-block"
                                                                    id="reminder_interval" name="reminder_interval"
                                                                    value="{{ isset($company_settings['reminder_interval']) ? $company_settings['reminder_interval'] : '' }}"
                                                                    placeholder="Enter Reminder Interval in minute"
                                                                    required />
                                                            </div>
                                                        </div>

                                                    </div>
                                                    <div class="col-md-12 text-end mt-3">
                                                        <input class="btn btn-print-invoice  btn-primary " type="submit"
                                                            value="{{ __('Save Changes') }}">
                                                    </div>
                                                </div>
                                            </div>
                                            {{ Form::close() }}
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane fade @if (session('tab') and session('tab') == 10) show active @endif"
                            id="files-setting" role="tabpanel" aria-labelledby="pills-user-tab-4">
                            {{ Form::open(['route' => ['files.setting', $business->id], 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
                            @csrf
                            <div class="row business-hrs">
                                <div class="col-md-12">
                                    <div class="card">
                                        <div class="card-header">
                                            <div class="row">
                                                <div class="col-lg-10 col-md-10 col-sm-10">
                                                    <h5 class="">{{ __('File') }}</h5>
                                                </div>
                                                <div class="col-lg-2 col-md-2 col-sm-2 text-end">
                                                    <div class="form-check form-switch custom-switch-v1 float-end">
                                                        <input type="checkbox" name="file_enable"
                                                            class="form-check-input input-primary" id="file_enable"
                                                            {{ (isset($files->value) ? $files->value : 'off') == 'on' ? ' checked ' : '' }}>
                                                        <label class="form-check-label" for="file_enable"></label>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="card-body">
                                            <div class="row mt-2">
                                                <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label for="file_label"
                                                            class="form-label">{{ __('label') }}</label>
                                                        <input class="form-control files_lbl"
                                                            placeholder="{{ __('Enter label here') }}" name="file_label"
                                                            type="text"
                                                            value="{{ isset($files->label) ? $files->label : '' }}"
                                                            {{ (isset($files->value) ? $files->value : 'off') == 'on' ? '' : ' disabled' }}
                                                            id="file_label">
                                                        <div class="choose-files pt-2">
                                                            <label for="image">
                                                                <div class=" bg-primary "> <i
                                                                        class="ti ti-upload px-1"></i>{{ __('Choose file here') }}
                                                                </div>
                                                                <input type="file" class="form-control file"
                                                                    name="image" id="image" data-filename="image"
                                                                    disabled>
                                                            </label>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="card-footer text-end">
                                            <input class="btn btn-print-invoice  btn-primary m-r-10" type="submit"
                                                value="{{ __('Save Changes') }}">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            {{ Form::close() }}
                        </div>

                        <div class="tab-pane fade @if (session('tab') and session('tab') == 11) show active @endif"
                            id="custom-field-setting" role="tabpanel" aria-labelledby="pills-user-tab-4">
                            {{ Form::open(['route' => ['custom-field.setting', $business->id], 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
                            @csrf
                            <div class="row business-hrs">
                                <div class="col-md-12">
                                    <div class="card">
                                        <div class="card-header">
                                            <div class="row">
                                                <div class="col-lg-10 col-md-10 col-sm-10">
                                                    <h5 class="">{{ __('Custom Field') }}</h5>
                                                </div>
                                                <div class="col-lg-2 col-md-2 col-sm-2 text-end">
                                                    <div class="form-check form-switch custom-switch-v1 float-end">
                                                        <input type="checkbox" name="custom_field_enable"
                                                            class="form-check-input input-primary"
                                                            id="custom_field_enable"
                                                            {{ (isset($custom_field) ? $custom_field : 'off') == 'on' ? ' checked ' : '' }}>
                                                        <label class="form-check-label" for="custom_field_enable"></label>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="card-body">
                                            <div class="row mt-2">
                                                <div id="fields-container">
                                                    @foreach ($custom_fields as $custom_field)
                                                        <div class="row align-items-center">
                                                            <div class="col-sm-5 col-12 mb-3">
                                                                <input type="text" class = "custom_lbl form-control"
                                                                    name="labels[]" placeholder="Label"
                                                                    value="{{ $custom_field->label }}">
                                                            </div>
                                                            <div class="col-sm-5 col-12 mb-3">
                                                                @if ($custom_field->type === 'textfield')
                                                                    <input type="text" name="values[]"
                                                                        placeholder="Value"
                                                                        value="{{ $custom_field->value }}"
                                                                        class="custom_lbl form-control" disabled>
                                                                @elseif($custom_field->type === 'textarea')
                                                                    <textarea name="values[]" placeholder="Value" class="custom_lbl form-control" disabled>{{ $custom_field->value }}</textarea>
                                                                @elseif($custom_field->type === 'date')
                                                                    <input type="date" class="form-control custom_lbl"
                                                                        name="values[]"
                                                                        value="{{ $custom_field->value }}" disabled>
                                                                @elseif($custom_field->type === 'number')
                                                                    <input type="number" class="form-control custom_lbl"
                                                                        name="values[]" placeholder="Value"
                                                                        value="{{ $custom_field->value }}" disabled>
                                                                @endif
                                                                <input type="hidden" name="types[]"
                                                                    value="{{ $custom_field->type }}">
                                                            </div>
                                                            <div class="col-sm-2 col-12 text-center text-sm-start mb-3">
                                                                <button type="button"
                                                                    class="btn-delete bg-danger border-0 rounded-1">
                                                                    <i class="ti ti-trash text-white"></i>
                                                                </button>
                                                            </div>
                                                        </div>
                                                    @endforeach
                                                    <!-- Fields will be dynamically added here -->
                                                </div>
                                            </div>
                                        </div>
                                        <div
                                            class="card-footer  d-flex flex-wrap justify-content-lg-end justify-content-center gap-2">
                                            <button type="button"
                                                class="btn btn-print-invoice  btn-secondary me-0 m-r-10 btn-add-textfield">{{ __('Add
                                                TextField')}}</button>
                                            <button type="button"
                                                class="btn btn-print-invoice  btn-secondary me-0 m-r-10 btn-add-textarea">{{ __('Add
                                                TextArea')}}</button>
                                            <button type="button"
                                                class="btn btn-print-invoice  btn-secondary me-0 m-r-10 btn-add-date">{{ __('Add
                                                Date')}}</button>
                                            <button type="button"
                                                class="btn btn-print-invoice  btn-secondary me-0 m-r-10 btn-add-number">{{ __('Add
                                                Number')}}</button>
                                            <input class="btn btn-print-invoice  btn-primary me-0 m-r-10" type="submit"
                                                value="{{ __('Save Changes') }}">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            {{ Form::close() }}
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <!-- [ sample-page ] end -->
    </div>
@endsection

@push('scripts')
    <script src="{{ asset('/assets/js/calendar.js') }}"></script>
    <script>
        $(document).ready(function() {
            $('.btn-add-textfield').click(function() {
                $('#fields-container').append(
                    '<div class="row align-items-center"><div class="col-sm-5 col-12 mb-3"><input type="text" class="form-control" name="labels[]" placeholder="Label"></div> <div class="col-sm-5 col-12 mb-3"><input type="text" class="form-control" name="values[]" placeholder="Value" disabled><input type="hidden" name="types[]" value="textfield"></div><div class="col-sm-2 col-12 text-center text-sm-start mb-3"><button type="button" class="btn-delete bg-danger border-0 rounded-1"><i class="ti ti-trash text-white"></i></button></div> </div>'
                );
            });

            $('.btn-add-textarea').click(function() {
                $('#fields-container').append(
                    '<div class="row align-items-center"> <div class="col-sm-5 col-12 mb-3"><input type="text" class="form-control" name="labels[]" placeholder="Label"></div> <div class="col-sm-5 col-12 mb-3"><textarea name="values[]" class="form-control" placeholder="Value" disabled></textarea><input type="hidden" name="types[]" value="textarea"></div> <div class="col-sm-2 col-12 text-center text-sm-start mb-3"><button type="button" class="btn-delete bg-danger border-0 rounded-1"><i class="ti ti-trash text-white"></i></button></div></div>'
                );
            });

            $('.btn-add-date').click(function() {
                $('#fields-container').append(
                    '<div class="row align-items-center"><div class="col-sm-5 col-12 mb-3"><input type="text" class="form-control" name="labels[]" placeholder="Label"></div><div class="col-sm-5 col-12 mb-3"><input type="date" class="form-control" name="values[]" value="{{ date('Y-m-d') }}" disabled><input type="hidden" name="types[]" value="date"></div><div class="col-sm-2 col-12 text-center text-sm-start mb-3"><button type="button" class="btn-delete bg-danger border-0 rounded-1"><i class="ti ti-trash text-white"></i></button></div></div>'
                );
            });

            $('.btn-add-number').click(function() {
                $('#fields-container').append(
                    '<div class="row align-items-center"><div class="col-sm-5 col-12 mb-3"><input type="text" class="form-control" name="labels[]" placeholder="Label"></div><div class="col-sm-5 col-12 mb-3"><input type="number" class="form-control" name="values[]" placeholder="Value" disabled><input type="hidden" name="types[]" value="number"></div><div class="col-sm-2 col-12 text-center text-sm-start mb-3"><button type="button" class="btn-delete bg-danger border-0 rounded-1"><i class="ti ti-trash text-white"></i></button></div></div>'
                );
            });

            $(document).on('click', '.btn-delete', function() {
                $(this).closest('.row').remove();
            });
        });
    </script>
    <script type="text/javascript">
        "use strict";
        (function() {
            var etitle;
            var etype;
            var etypeclass;
            var locale = "{{ app()->getLocale() }}";
            var calendar = new FullCalendar.Calendar(document.getElementById('calendar'), {
                headerToolbar: {
                    left: 'prev,next today',
                    center: 'title',
                    right: 'dayGridMonth,timeGridWeek,timeGridDay'
                },
                buttonText: {
                    timeGridDay: "{{ __('Day') }}",
                    timeGridWeek: "{{ __('Week') }}",
                    dayGridMonth: "{{ __('Month') }}"
                },
                locale: locale,
                themeSystem: 'bootstrap',
                slotDuration: '00:10:00',
                navLinks: true,
                droppable: true,
                selectable: true,
                selectMirror: true,
                editable: true,
                dayMaxEvents: true,
                handleWindowResize: true,
                events: {!! json_encode($businessholidays) !!},
            });
            calendar.render();
        })();

        $(document).on('click', '#file_enable', function() {
            if ($('#file_enable').prop('checked')) {
                $(".files_lbl").removeAttr("disabled");
            } else {
                $('.files_lbl').attr("disabled", "disabled");
            }
        });

        $(document).on('click', '#custom_field_enable', function() {
            if ($('#custom_field_enable').prop('checked')) {
                $(".custom_lbl").removeAttr("disabled");
            } else {
                $('.custom_lbl').attr("disabled", "disabled");
            }
        });

        var selector = "body";
        var slides = document.getElementsByClassName("repeater");

        const days = ["monday_break_business", "tuesday_break_business", "wednesday_break_business",
            "thursday_break_business", "friday_break_business", "saturday_break_business", "sunday_break_business"
        ];

        for (var i = 0; i < slides.length; i++) {
            var repeaterDayId = '#' + days[i];
            var $dragAndDrop = $("body .repeater tbody").sortable({
                handle: '.sort-handler'
            });
            var $repeater = $(repeaterDayId).repeater({
                initEmpty: true,

                hide: function(deleteElement) {
                    $(this).remove();
                },
                ready: function(setIndexes) {
                    $dragAndDrop.on('drop', setIndexes);
                },

                isFirstItemUndeletable: false
            });
            var value = $(repeaterDayId).attr('data-value');
            if (typeof value != 'undefined' && value.length != 0) {
                value = JSON.parse(value);
                $repeater.setList(value);
            }
            $(document).on('click', '[data-repeater-create]', function() {
                $(document).on('click', '.repeaterTimeField', function() {
                    $(this).attr('type', 'time');
                });
            });

        }


        $(document).on('click', '.day_off', function() {
            var data_id = '.day_off_' + $(this).data('id');
            var id = '.day_disable_' + $(this).data('id');
            let isChecked = $(this).is(':checked')

            if (isChecked) {
                $(data_id).addClass("d-none");
                $(id).prop('disabled', true);

            } else {
                $(data_id).removeClass("d-none");
                $(id).prop('disabled', false);
            }
        });

        $(document).on('click', '.repeaterTimeField', function() {
            $(this).attr('type', 'time');
        });

        $(document).ready(function() {
            var checked = $("input[type=radio][name='enable_domain']:checked");
            $(checked).closest('#enable_storelink').removeClass('btn-primary');
            $(checked).parent().addClass('btn-primary');
        });

        $(document).on('change', '.domain_click#enable_storelink', function(e) {

            $('#StoreLink').show();
            $('.sundomain').hide();
            $('.domain').hide();
            $('#domainnote').hide();
            $(this).parent().removeClass('btn-secondary');
            $(this).parent().addClass('btn-primary');
            $('#enable_domain').parent().addClass('btn-secondary');
            $('#enable_domain').parent().removeClass('btn-primary');
            $('#enable_subdomain').parent().addClass('btn-secondary');
            $('#enable_subdomain').parent().removeClass('btn-primary');
        });
        $(document).on('change', '.domain_click#enable_domain', function(e) {
            $('.domain').show();
            $('#StoreLink').hide();
            $('.sundomain').hide();
            $('#domainnote').show();
            $(this).parent().removeClass('btn-secondary');
            $(this).parent().addClass('btn-primary');
            $('#enable_storelink').parent().addClass('btn-secondary');
            $('#enable_storelink').parent().removeClass('btn-primary');
            $('#enable_subdomain').parent().addClass('btn-secondary');
            $('#enable_subdomain').parent().removeClass('btn-primary');

        });
        $(document).on('change', '.domain_click#enable_subdomain', function(e) {
            $('.sundomain').show();
            $('#StoreLink').hide();
            $('.domain').hide();
            $('#domainnote').hide();
            $(this).parent().removeClass('btn-secondary');
            $(this).parent().addClass('btn-primary');
            $('#enable_storelink').parent().addClass('btn-secondary');
            $('#enable_storelink').parent().removeClass('btn-primary');
            $('#enable_domain').parent().addClass('btn-secondary');
            $('#enable_domain').parent().removeClass('btn-primary');
        });

        function myFunction() {
            var copyText = document.getElementById("myInput");
            copyText.select();
            copyText.setSelectionRange(0, 99999)
            document.execCommand("copy");
        }
    </script>
@endpush

Anon7 - 2021