@extends("admin.layouts.layout") @push("header") @endpush @section("content")
@if(($mode ?? 'customer') == 'order') @endif
@if(($mode ?? 'customer') == 'order')
订单时点余额表

统计时点:{{ $before_datetime_text }}

@foreach($orderBalances as $item) @endforeach
序号 项目名称 时点 订单号 客户手机号 联系人 联系电话 被陪护人 服务开始 服务结束 时点余额
{{ $loop->iteration }} {{ $item->project_name }} {{ $item->point_time }} {{ $item->serial }} {{ $item->customer_mobile }} {{ $item->contact }} {{ $item->contact_mobile }} {{ $item->patient_name ?: "无" }} {{ $item->from_date }} {{ $item->to_date }} {{ $item->balance }}
@else
客户余额表

统计时点:{{ $before_datetime_text }}

@foreach($customers as $item) @if(!$item->oneBalance) @continue @elseif (!($item->oneBalance->balance > 0)) @continue @endif @endforeach
序号 客户手机号 客户家属 截止日期 未结算余额
{{ $loop->iteration }} {{ $item->mobile }} {{ $item->patients->count() ? $item->patients->last()->name : "无" }} {{ $before_date }} {{ $item->balance }}
@endif
@include("plugins.datatable") @endsection