![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mcoil.corals.io/resources/views/admin/module/contact/ |
@extends('layouts.admin.app') @section('stylesheets') <link href="{{ asset('css/sweetalert2.min.css') }}" rel="stylesheet" type="text/css" /> @endsection @section('content') <div class="row"> <div class="col-md-12"> <section class="content"> @include('layouts.errors-and-messages') @if($contactinfos) <div class="box"> <div class="box-body"> <div class="col-md-12"> <h3 class="bold">Contact Info</h3> <table class="table table-striped table-hover table-checkable dataTable table-responsive table-responsive-md responsive" id="order_table"> <thead class="thead-dark"> <tr> <th scope="col" class="all">Title</th> <th scope="col" class="all">Company Name</th> <th scope="col" class="min-tablet-l">Contact</th> <th scope="col" class="min-tablet-l">Address</th> <th scope="col" class="min-mobile-l">Actions</th> </tr> </thead> <tbody> @foreach ($contactinfos as $ci => $contactinfo) <tr> <td class="dtr-control">{{ $contactinfo->title }}</td> <td>{{ $contactinfo->company_name }}</td> <td>{{ $contactinfo->contact_name }}</td> <td>{{ $contactinfo->address }}</td> <td> {!! Form::open(['method' => 'post', 'route' => ['admin.page.module.contactinfo.destroy', $contactinfo->id], 'id' => 'remove-from-form']) !!} <input type="hidden" name="id" value="{{ $contactinfo->id }}"> {{ csrf_field() }} <input type="hidden" name="_method" value="delete"> <div class="btn-group"> <a href="{{ route('admin.page.module.contactinfo.update', $contactinfo->id) }}" class="btn btn-dark"><i class="fa fa-pencil"></i> Edit</a> </div> {!! Form::close() !!} </td> </tr> @endforeach </tbody> </table> </div> </div> </div> @endif </section> </div> </div> @endsection @section('js') <script src="{{ asset('js/sweetalert2.all.min.js') }}"></script> <script type="text/javascript"> $(document).ready( function () { $.fn.DataTable.ext.pager.numbers_length = 5; $('#order_table').DataTable({ "responsive": true, "order": [[ 0, "asc" ]], "bAutoWidth": false, "rowReorder": { selector: 'td:nth-child(2)' }, "columnDefs": [ { "width": "50px", "targets": 4 } ] }); }); </script> @endsection