@extends('manager.layout.master') @section('body') @php $statusColors = [ 10 => 'layui-bg-orange', // 待支付 11 => 'layui-bg-blue', // 意向金已支付 20 => 'layui-bg-cyan', // 推演中 30 => 'layui-bg-green', // 已完成 40 => 'layui-bg-gray', // 已退回 ]; $totalCount = 0; $statusCount = []; foreach ($list as $o) { $totalCount++; $statusCount[$o->status] = ($statusCount[$o->status] ?? 0) + 1; } @endphp
个人测名 {{$totalCount}} @foreach(\App\Models\Order::$statusItemList as $key=>$label) @php $cnt = $statusCount[$key] ?? 0; @endphp @if($cnt > 0) {{$label}} {{$cnt}} @endif @endforeach
刷新
@foreach($list as $key=>$vo) @endforeach
订单号 用户信息 类型 测名信息 金额 时间 状态 操作
{{\Illuminate\Support\Str::limit($vo->number, 20, '')}}
{{$vo->type_text ?? '-'}} @foreach($vo->TNameList as $v)
{{$v->surname ?? ''}}{{$v->name ?? ''}} @if($v->sex_text) {{$v->sex_text}} @endif
生日:{{$v->birthday ?: '-'}}
地址:{{$v->area_text ?: '-'}}
@endforeach
¥{{$vo->price ?? '0.00'}}
下单:{{$vo->create_time ?: '-'}} 支付:{{$vo->pay_time ?: '-'}}
{{$vo->status_text}} 详情
@include('manager.include.pageBtn') @stop