| Server IP : 103.161.17.216 / Your IP : 216.73.216.1 Web Server : nginx/1.18.0 System : Linux tipsysaigoncharming 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/thammyviendd.com/resources/views/admin/post/ |
Upload File : |
@extends('admin_layout')
@section('admin_content')
<div class="table-agile-info">
<div class="panel panel-default">
<div class="panel-heading">
Liệt kê bài viết
<a class="btn btn-success" href="{{URL::to('/add-post')}}"> Thêm bài viết mới </a>
</div>
<label for="exampleInputPassword1">Chọn danh mục </label>
<select name="categorypost_id" class="form-control input-sm m-bot15 filtercate">
<option value="">----Chọn danh mục tin---</option>
<option id="0"value="">----Tất cả---</option>
@foreach($categorypost as $key => $cate_pro)
<option id="{{$cate_pro->categorypost_id}}"value="{{$cate_pro->categorypost_id}}">---{{$cate_pro->categorypost_name}}--- </option>
@endforeach
</select>
{{-- <div class="row w3-res-tb">
<div class="col-sm-5 m-b-xs">
<select class="input-sm form-control w-sm inline v-middle">
<option value="0">Bulk action</option>
<option value="1">Delete selected</option>
<option value="2">Bulk edit</option>
<option value="3">Export</option>
</select>
<button class="btn btn-sm btn-default">Apply</button>
</div>
<div class="col-sm-4">
</div>
<div class="col-sm-3">
<div class="input-group">
<input type="text" class="input-sm form-control" placeholder="Search">
<span class="input-group-btn">
<button class="btn btn-sm btn-default" type="button">Go!</button>
</span>
</div>
</div>
</div> --}}
<div class="table-responsive">
<?php
$message = Session::get('message');
if($message){
echo '<span class="text-alert">'.$message.'</span>';
Session::put('message',null);
}
?>
<table class="table table-striped b-t b-light" id="myTable">
<thead>
<tr>
<th style="width:20px;">
<label class="i-checks m-b-none">
<input type="checkbox"><i></i>
</label>
</th>
<th>Tên bài viết</th>
<th>Hình ảnh</th>
<th>Slug</th>
<th>Mô tả bài viết</th>
<th>Từ khóa bài viết</th>
<th>Danh mục bài viết</th>
<th>Hiển thị</th>
<th style="width:30px;"></th>
</tr>
</thead>
<tbody>
@foreach($all_post as $key => $post)
<tr>
<td><label class="i-checks m-b-none"><input type="checkbox" name="post[]"><i></i></label></td>
<td>{{ $post->post_title }}</td>
<td><img src="{{asset('public/uploads/post/'.$post->post_image)}}" height="100" width="100"></td>
<td>{{ $post->post_slug }}</td>
<td>{!! $post->post_desc !!}</td>
<td>{{ $post->post_meta_keywords }}</td>
<td>{{ $post->categorypost->categorypost_name }}</td>
<td>
@if($post->post_status==0)
Hiển thị
@else
Ẩn
@endif
</td>
<td>
<a href="{{URL::to('/edit-post/'.$post->post_id)}}" class="active styling-edit" ui-toggle-class="">
<i class="fa fa-pencil-square-o text-success text-active"></i></a>
<a onclick="return confirm('bạn có chắc muốn xóa không?')" href="{{URL::to('/delete-post/'.$post->post_id)}}" class="active" ui-toggle-class=""> <i class="fa fa-times text-danger text"></i></a>
{{-- <a onclick="return confirm('Bạn có chắc là muốn xóa bài viết này ko?')" href="{{URL::to('/delete-post/'.$post->post_id)}}" class="active styling-edit" ui-toggle-class="">
<i class="fa fa-times text-danger text"></i> <input type="hidden" name="_token" id="csrf-token" value="{{ Session::token() }}" /> --}}
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
{{-- <footer class="panel-footer">
<div class="row">
<div class="col-sm-5 text-center">
<small class="text-muted inline m-t-sm m-b-sm">showing 20-30 of 50 items</small>
</div>
<div class="col-sm-7 text-right text-center-xs">
<ul class="pagination pagination-sm m-t-none m-b-none">
{!!$all_post->links()!!}
</ul>
</div>
</div>
</footer> --}}
</div>
</div>
@endsection