⚝
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
/
posts
/
View File Name :
index.blade.php
@section('style') @endsection @extends('layouts.backend.app') @section('content') <div class="card"> <div class="card-body"> <div class="row mb-30"> <div class="col-lg-6"> <h4>{{ __('Posts List') }}</h4> </div> <div class="col-lg-6"> <div class="add-new-btn"> <a href="{{ route('admin.post.create') }}" class="btn f-right">{{ __('Add New') }}</a> </div> </div> </div> <div class="cart-filter mb-20"> <a href="{{ route('admin.post.index') }}">{{ __('All') }} <span>({{ App\Terms::where('type',0)->where('status','!=',0)->count() }})</span></a> <a href="?st=1">{{ __('Published') }} <span>({{ App\Terms::where('type',0)->where('status',1)->count() }})</span></a> <a href="?st=2">{{ __('Drafts') }} <span>({{ App\Terms::where('type',0)->where('status',2)->count() }})</span></a> <a href="?st=trash" class="trash">{{ __('Trash') }} <span>({{ App\Terms::where('type',0)->where('status',0)->count() }})</span></a> </div> <div class="card-action-filter"> <div class="row mb-10"> <div class="col-lg-6"> <form id="basicform" method="post" action="{{ route('admin.post.destroys') }}"> @csrf <div class="d-flex"> <div class="single-filter"> <div class="form-group"> <select class="form-control" name="status"> <option>{{ __('Bulk Actions') }}</option> <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="checkAll"> <label class="custom-control-label" for="checkAll"></label> </div> </th> <th class="am-title">{{ __('Title') }}</th> <th class="am-author">{{ __('Author') }}</th> <th class="am-tags">{{ __('Views') }}</th> <th class="am-tags">{{ __('Lang') }}</th> <th class="am-tags">{{ __('Status') }}</th> <th class="am-date">{{ __('Last Modified') }}</th> </tr> </thead> <tbody> @foreach($posts as $post) <tr> <th> <div class="custom-control custom-checkbox"> <input type="checkbox" name="ids[]" class="custom-control-input" id="customCheck{{ $post->id }}" value="{{ $post->id }}"> <label class="custom-control-label" for="customCheck{{ $post->id }}"></label> </div> </th> <td> {{ $post->title }} <div class="hover"> <a href="{{ route('admin.post.edit',$post->id) }}">{{ __('Edit') }}</a> <a href="{{ route('admin.post.edit',$post->id) }}" class="last">{{ __('View') }}</a> </div> </td> <td>{{ $post->user->name }}</td> <td>{{ $post->count }}</td> <td>{{ $post->lang }}</td> <td>@if($post->status==1) Published @elseif($post->status==2) {{ __('Draft') }} @else {{ __('Trash') }} @endif</td> <td>{{ __('Last Modified') }} <div class="date"> {{ $post->updated_at->diffForHumans() }} </div> </td> </tr> @endforeach </tbody> <tfoot> <tr> <th class="am-select"> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input checkAll" id="checkAll"> <label class="custom-control-label" for="checkAll"></label> </div> </th> <th class="am-title">{{ __('Title') }}</th> <th class="am-author">{{ __('Author') }}</th> <th class="am-tags">{{ __('Views') }}</th> <th class="am-tags">{{ __('Lang') }}</th> <th class="am-tags">{{ __('Status') }}</th> <th class="am-date">{{ __('Last Modified') }}</th> </tr> </tfoot> </table> {{ $posts->links() }} </div> </div> </div> @endsection @section('script') <script src="{{ asset('admin/js/form.js') }}"></script> <script type="text/javascript"> "use strict"; //success response will assign this function function success(res){ location.reload(); } function errosresponse(xhr){ $("#errors").html("<li class='text-danger'>"+xhr.responseJSON[0]+"</li>") } </script> @endsection