@extends('layout') @section('pageTitle', "商品|".config('globals.app_name')) @section('content')

商品

{{-- 新增商品 --}}
@php $status = array(-1 => '取消訂單', 1 => '未付款', 2 => '已付款' , 3 => '已配送' , 4 => '訂單已完成'); $status_color = array(-1 => '', 1 => 'red', 2 => 'green' , 3 => 'green' , 4 => 'green'); @endphp @foreach ($Order as $item => $row)
訂單編號:{{ $row->orderSn }}
訂單狀態:{{ $status[$row->status] }}
訂購日: {{ date('Y-m-d',strtotime($row->created_at)) }}
出貨日:{{ ($row->status == 1)?"":date('Y-m-d',strtotime($row->updated_at_at)) }}
{{-- {{dd($orderProductView)}} --}} @foreach ($orderProductView[$row->orderSn] as $key => $val) {!! $val."
" !!} @endforeach {{-- 雞心 x 2 --}}
{{ $row->name }}
{{ $row->phone }}
${{ $row->totalMoney }}
{{ $row->deliveryType }}
{{ $row->payType }}
備註:{{ $row->ps }}
{{-- $status = array(-1 => '取消訂單', 1 => '未付款', 2 => '已付款' , 3 => '已配送' , 4 => '訂單已完成'); --}}
@endforeach
@csrf @endsection @push('modal') @component('components.modal.notice', ['name' => 'alert','title' => 'Notice']) @endcomponent @endpush