@extends('admin.layouts.contentLayoutMaster') @section('title','消費紀錄') @section('vendor-styles') @endsection @section('page-styles') @endsection @section('content') {{-- search bar --}} 搜尋 會員電話 會員姓名 訂單編號 廠商服務 @foreach ($firm_services as $key => $value) input('firm_service_id') == (string)$key ? 'selected' : '' }} >{{ $value }} @endforeach 列表 @can('會員管理-會員資料列表-編輯') 新增 @endcan 會員姓名 會員帳號 廠商服務 訂單編號 消費金額 消費日期 操作 @if ($purchases->isNotEmpty()) @foreach ($purchases as $purchase) {{ $purchase->user_relation->user->profile->name }} {{ $purchase->user_relation->user->mobile }} {{ $purchase->firm_service->name }} {{ $purchase->order_code }} $ {{ number_format($purchase->total) }} {{ $purchase->purchase_at->format('Y-m-d') }} @can('會員管理-消費紀錄列表-檢視') @endcan @endforeach @else @include('admin.panels.list-no-data') @endif @endsection @section('vendor-scripts') @endsection @section('page-scripts') @endsection