| 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/chongthamdls.vn/editthanhtra/editlayout/admin/datlich/ |
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ê đơn hàng
</div>
<div class="row w3-res-tb">
</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 khách hàng</th>
<th>Số Điện Thoại </th>
<th>thông tin đặt lịch </th>
<th>Thời gian đặt lịch</th>
<th>Tình trạng</th>
<th>Trạng thái</th></th>
<th style="width:30px;"></th>
</tr>
</thead>
<tbody>
@php $i=0;@endphp
@foreach($datlich as $key => $or)
<tr>
<td>{{$i+=1}}</td>
<td>{{$or -> datlich_name}}</td>
<td>{{$or -> datlich_phone}}</td>
<td>{{$or -> datlich_notes}}</td>
<td>{{$or -> created_at}}</td>
<td>@if($or -> datlich_status==0)
<p style="color: red;">Đơn Hàng Mới
@elseif($or -> datlich_status==1)
<p style="color: green;">Đã Xử Lý</p>
@elseif($or -> datlich_status==2)
<p style="color: purple;"> Hủy đơn hàng </p>
@endif
</td>
<td colspan="6">
@if($or->datlich_status==0)
<form>
<select class="form-control datlich_check">
<option value=""> ----Chọn tình trạng đơn hàng---- </option>
<option id="{{$or->datlich_id}}" selected value="0">Chưa xử lý </option>
<option id="{{$or->datlich_id}}"value="1">Đã xử lý </option>
<option id="{{$or->datlich_id}}"value="2">Hũy Đơn Hàng</option>
</select>
</form>
@elseif($or->datlich_status==1)
<form>
<select class="form-control datlich_check">
<option value=""> ----Chọn tình trạng đơn hàng---- </option>
<option id="{{$or->datlich_id}}" value="0">Chưa xử lý </option>
<option id="{{$or->datlich_id}}" selected value="1">Đã xử lý </option>
<option id="{{$or->datlich_id}}" value="2">Hũy Đơn Hàng</option>
</select>
</form>
@else
<form>
<select class="form-control datlich_check">
<option value=""> ----Chọn tình trạng đơn hàng---- </option>
<option id="{{$or->datlich_id}}" value="0">Chưa xử lý </option>
<option id="{{$or->datlich_id}}" value="1">Đã xử lý </option>
<option id="{{$or->datlich_id}}"selected value="2">Hũy Đơn Hàng</option>
</select>
</form>
@endif
</td>
<td>
<a onclick="return confirm('bạn có chắc muốn xóa không?')" href="{{URL::to('/delete-datlich/'.$or->datlich_id)}}" class="active" ui-toggle-class=""> <i class="fa fa-times text-danger text"></i></a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</section>
@endsection