name : sectionSetting.blade.php
@extends('backend.master')
@section('table')
    {{__('frontend_settings')}}
@endsection
@section('mainContent')
    {!! generateBreadcrumb() !!}

    <section class="admin-visitor-area up_st_admin_visitor">
        <div class="container-fluid p-0">
            <div class="row justify-content-center">
                @if(isset($edit))
                    <div class="col-lg-3">
                        <div class="row justify-content-center">
                            <div class="col-12">
                                <div class="box_header common_table_header">
                                    <div class="main-title d-md-flex">
                                        <h3 class="mb-0 mr-30 mb_xs_15px mb_sm_20px">
                                            @if(!isset($edit))
                                                {{__('frontendmanage.Add New Section Setting') }}
                                            @else
                                                {{__('common.Update')}}
                                            @endif</h3>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="white-box mb_30 ">
                            @if (isset($edit))
                                <form action="{{route('frontend.sectionSetting_update')}}" method="POST"
                                      id="coupon-form"
                                      name="coupon-form" enctype="multipart/form-data">
                                    @else
                                        @if(permissionCheck('frontend.sectionSetting.store'))
                                            <form action="{{route('frontend.sectionSetting_store') }}" method="POST"
                                                  id="coupon-form" name="coupon-form" enctype="multipart/form-data">
                                                @endif
                                                @endif
                                                @csrf
                                                @if(isset($edit))
                                                    <input type="hidden" name="id"
                                                           value="{{$edit->id}}">
                                                @endif
                                                <input type="hidden" name="category" value="1">
                                                <div class="row">

                                                    <div class="col-xl-12">
                                                        <div class="primary_input mb-25">
                                                            <label class="primary_input_label"
                                                                   for="">{{ __('frontendmanage.Title') }} *</label>
                                                            <input name="title" id="title"
                                                                   {{ $errors->has('title') ? ' autofocus' : '' }}
                                                                   class="primary_input_field name {{ @$errors->has('title') ? ' is-invalid' : '' }}"
                                                                   placeholder="{{ __('frontendmanage.Title') }}"
                                                                   type="text"
                                                                   value="{{isset($edit)?$edit->title:old('title')}}">
                                                            @if ($errors->has('title'))
                                                                <span class="invalid-feedback d-block mb-10"
                                                                      role="alert">
                                            <strong>{{ @$errors->first('title') }}</strong>
                                        </span>
                                                            @endif
                                                        </div>
                                                    </div>

                                                    <div class="col-xl-12">
                                                        <div class="primary_input mb-25">
                                                            <label class="primary_input_label"
                                                                   for="">{{ __('frontendmanage.URL') }}</label>
                                                            <input name="url" id="title"
                                                                   {{ $errors->has('url') ? ' autofocus' : '' }}
                                                                   class="primary_input_field name {{ @$errors->has('title') ? ' is-invalid' : '' }}"
                                                                   placeholder="{{ __('frontendmanage.URL') }}"
                                                                   type="text"
                                                                   value="{{isset($edit)?$edit->url:old('url')}}">
                                                            @if ($errors->has('url'))
                                                                <span class="invalid-feedback d-block mb-10"
                                                                      role="alert">
                                            <strong>{{ @$errors->first('url') }}</strong>
                                        </span>
                                                            @endif
                                                        </div>
                                                    </div>

                                                    <div class="col-xl-12">
                                                        <div class="primary_input mb-25">
                                                            <label class="primary_input_label"
                                                                   for="">{{ __('frontendmanage.Description') }}</label>
                                                            <textarea name="description" id="" cols="30" rows="10"
                                                                      {{ $errors->has('description') ? ' autofocus' : '' }}
                                                                      placeholder="{{ __('frontendmanage.Description') }}"
                                                                      class="primary_textarea {{ @$errors->has('description') ? ' is-invalid' : '' }}">{{isset($edit)?$edit->description:old('description')}}</textarea>
                                                            @if ($errors->has('description'))
                                                                <span class="invalid-feedback d-block mb-10"
                                                                      role="alert">
                                            <strong>{{ @$errors->first('description') }}</strong>
                                        </span>
                                                            @endif
                                                        </div>
                                                    </div>

                                                    <div class="col-xl-12">
                                                        <div class="primary_input mb-25">
                                                            <label class="primary_input_label"
                                                                   for="">{{ __('frontendmanage.Icon') }}</label>
                                                            <select {{ $errors->has('icon') ? ' autofocus' : '' }}
                                                                    class="primary_select mb-25  {{ @$errors->has('icon') ? ' is-invalid' : '' }}"
                                                                    name="icon" id="icon" required>
                                                                @if(isset($edit))
                                                                    <option value="fa {{@$edit->icon}}"
                                                                            selected>{{@$edit->icon}} [selected]
                                                                    </option>
                                                                @endif
                                                                {!! returnList() !!}
                                                            </select>
                                                        </div>
                                                    </div>

                                                    <div class="col-xl-12">
                                                        <div class="primary_input mb-25">
                                                            <label class="primary_input_label"
                                                                   for="">{{ __('common.Status') }}</label>
                                                            <select
                                                                class="primary_select mb-25  {{ @$errors->has('status') ? ' is-invalid' : '' }}"
                                                                name="status" id="status" required>
                                                                <option
                                                                    value="1" {{isset($edit)?($edit->status==1?'selected':''):''}}>{{__('common.Active') }}</option>
                                                                <option
                                                                    value="0" {{isset($edit)?($edit->status==0?'selected':''):''}}>{{__('common.Inactive') }}</option>
                                                            </select>
                                                        </div>
                                                    </div>

                                                    @php
                                                        $tooltip = "";
                                                          if(permissionCheck('frontend.sectionSetting.store')){
                                                              $tooltip = "";
                                                          }else{
                                                              $tooltip = "You have no permission to add";
                                                          }
                                                    @endphp
                                                    <div class="col-lg-12 text-center">
                                                        <div class="d-flex justify-content-center pt_20">
                                                            <button type="submit"
                                                                    class="primary-btn semi_large fix-gr-bg"
                                                                    data-toggle="tooltip" title="{{$tooltip}}"
                                                                    id="save_button_parent">
                                                                <i class="ti-check"></i>
                                                                @if(!isset($edit))
                                                                    {{ __('common.Save') }}
                                                                @else
                                                                    {{ __('common.Update') }}
                                                                @endif
                                                            </button>
                                                        </div>
                                                    </div>
                                                </div>
                                            </form>
                        </div>
                    </div>
                @endif
                <div class="{{isset($edit) ? 'col-lg-9' : 'col-lg-12'}}">
                    <div class="box_header common_table_header">
                        <div class="main-title d-md-flex mb-0">
                            <h3 class="mb-0">{{__('frontendmanage.Section List')}} </h3>
                        </div>
                    </div>
                    <div class="QA_section QA_section_heading_custom check_box_table">
                        <div class="QA_table ">
                            <!-- table-responsive -->
                            <div class="">
                                <table id="lms_table" class="table Crm_table_active3">
                                    <thead>
                                    <tr>
                                        <th scope="col">{{ __('common.SL') }}</th>
                                        <th scope="col">{{ __('frontendmanage.Title') }}</th>
                                        <th scope="col">{{ __('frontendmanage.URL') }}</th>
                                        <th scope="col">{{ __('frontendmanage.Description') }}</th>
                                        <th scope="col">{{ __('common.Status') }}</th>
                                        <th scope="col">{{ __('frontendmanage.Icon') }}</th>
                                        <th scope="col">{{ __('frontendmanage.Date') }}</th>
                                        <th scope="col">{{ __('common.Action') }}</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    @foreach($data['frontends'] as $key => $item)
                                        <tr>
                                            <th>{{ $key+1 }}</th>
                                            <td>{{ $item->title }}</td>
                                            <td>{{ $item->url }}</td>
                                            <td>{{ $item->description }}</td>
                                            <td>
                                                <label class="switch_toggle" for="status_enable_disable{{ $item->id }}">
                                                    <input type="checkbox" id="status_enable_disable{{ $item->id }}"
                                                           class="@if (permissionCheck('frontend.sectionSetting.status_update')) status_enable_disable @endif "
                                                           @if ($item->status == 1) checked
                                                           @endif value="{{ $item->id }}">
                                                    <i class="slider round"></i>
                                                </label>
                                            </td>
                                            <td><i class="{{@$item->icon}}"></i></td>
                                            <td>{{ showDate($item->created_at) }}</td>

                                            <td>
                                                <!-- shortby  -->
                                                <div class="dropdown CRM_dropdown">
                                                    <button class="btn btn-secondary dropdown-toggle" type="button"
                                                            id="dropdownMenu2" data-toggle="dropdown"
                                                            aria-haspopup="true" aria-expanded="false">
                                                        {{ __('common.Select') }}
                                                    </button>
                                                    <div class="dropdown-menu dropdown-menu-right"
                                                         aria-labelledby="dropdownMenu2">
                                                        @if (permissionCheck('frontend.sectionSetting.edit'))
                                                            <a class="dropdown-item edit_brand"
                                                               href="{{route('frontend.sectionSetting_edit',$item->id)}}">{{__('common.Edit')}}</a>
                                                        @endif

                                                    </div>
                                                </div>
                                                <!-- shortby  -->
                                            </td>
                                        </tr>
                                    @endforeach
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    @include('backend.partials.delete_modal')
@endsection
@push('scripts')

@endpush

© 2025 UnknownSec
afwwrfwafr45458465
Password