⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.91
Server IP:
157.245.101.34
Server:
Linux skvinfotech-website 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
skvinfotech.com
/
resources
/
views
/
admin
/
View File Name :
enquiries.blade.php
@extends('layouts.app') @section('content') <div id="page-container" class="sidebar-o sidebar-dark enable-page-overlay side-scroll page-header-fixed main-content-narrow"> @include('layouts.top_navbar') @include('layouts.sidebar') <!-- Main Container --> <main id="main-container"> <!-- Hero --> <div class="bg-body-light"> <div class="content content-full"> <div class="d-flex flex-column flex-sm-row justify-content-sm-between align-items-sm-center"> <h1 class="flex-sm-fill h3 my-2"> Enquiry </h1> <nav class="flex-sm-00-auto ml-sm-3" aria-label="breadcrumb"> <ol class="breadcrumb breadcrumb-alt"> <li class="breadcrumb-item">Enquiry</li> <li class="breadcrumb-item" aria-current="page"> <a class="link-fx" href="">List</a> </li> </ol> </nav> </div> </div> </div> <!-- END Hero --> <!-- Dynamic Table Full Pagination --> <div class="block block-rounded"> <div class="block-content block-content-full"> <table class="table table-bordered table-striped table-vcenter js-dataTable-full-pagination"> <thead> <tr> <th class="text-center" style="width: 80px;">ID</th> <th>Name</th> <th class="d-none d-sm-table-cell" style="width: 10%;">Email</th> <th class="d-none d-sm-table-cell" style="width: 10%;">Mobile</th> <th class="d-none d-sm-table-cell" style="width: 30%;">Message</th> <th class="d-none d-sm-table-cell" style="width: 15%;">Status</th> <th style="width: 15%;">Action</th> </tr> </thead> <tbody> @foreach ($enquiries as $enquiry) <tr> <td class="text-center font-size-sm">{{ $loop->index+1 }}</td> <td class="font-w600 font-size-sm">{{ $enquiry->name }}</td> <td class="d-none d-sm-table-cell font-size-sm">{{ $enquiry->email }}</td> <td class="d-none d-sm-table-cell font-size-sm">{{ $enquiry->mobile }}</td> <td class="d-none d-sm-table-cell font-size-sm">{{ $enquiry->message ? $enquiry->message:'-' }}</td> @if($enquiry->status == 1) <td class="d-none d-sm-table-cell"><a href="javascript:void(0)" class="btn btn-success btn-sm">Completed</a></td> @else <td class="d-none d-sm-table-cell"><a href="{{ Route('enquiry.status',[$enquiry->id]) }}" class="btn btn-danger btn-sm">In Completed</a></td> @endif <td><a href="{{ Route('enquiry.view',[$enquiry->id]) }}" class="btn btn-warning btn-sm btn-view mr-1 "><span class="fa fa-eye" ><a href="" data-remote="{{ Route('enquiry.delete',[$enquiry->id]) }}" class="btn btn-warning btn-sm delete-confirm ml-1"><span class="fa fa-trash" ></td> </tr> @endforeach </tbody> </table> </div> </div> <!-- END Dynamic Table Full Pagination --> </main> <!-- END Main Container --> </div> @endsection @section('script') <script> $( document ).ready(function() { @if (session('status')) const Toast = Swal.mixin({ toast: true, position: 'top-end', showConfirmButton: false, timerProgressBar: true, showCloseButton: true, didOpen: (toast) => { toast.addEventListener('mouseenter', Swal.stopTimer) toast.addEventListener('mouseleave', Swal.resumeTimer) } }) var timing = 2000; @if (session('extend_time')) var timing = 20000; @endif Toast.fire({ title: "{{session('message')}}", icon:"{{session('status')}}", timer: timing }) @endif }); $(function() { var table = $('.table'); table.on('click','.delete-confirm[data-remote]', function (event) { event.preventDefault(); let url = $(this).data('remote'); Swal.fire({ title: 'Are you sure?', text: "You won't be able to revert this!", icon: 'warning', iconColor: '#d33', showCancelButton: true, confirmButtonColor: '#38138a', cancelButtonColor: '#d33', confirmButtonText: 'Yes, delete it!' }).then((result) => { if (result.isConfirmed) { window.location.href = url; } }) }); }); </script> @endsection