You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.7 KiB

5 years ago
@extends("admin.layouts.layout")
@push("header")
<style>
table.dataTable thead .sorting:before, table.dataTable thead .sorting:after {
display: none !important;
}
</style>
<script>
var datatable_configs = {
sorting: false,
paging: true,
};
</script>
@endpush
@section("content")
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body" style="overflow: auto">
<div class="mb-3">
<form class="form-inline">
<label class="control-label mr-1">截止</label><input
value="{{ date("Y-m-d",$before_datetime) }}" class="form-control" name="before_date"
data-plugin="date-picker">
<button type="submit" class="btn btn-primary ml-1">查询</button>
</form>
</div>
<h5>客户余额表</h5>
<table class="table table-bordered mb-0 table-datatable">
<thead>
<tr>
<th class="p-1" style="white-space: nowrap">序号</th>
<th class="p-1" style="white-space: nowrap">客户手机号</th>
<th class="p-1" style="white-space: nowrap">客户家属</th>
<th class="p-1" style="white-space: nowrap">截止日期</th>
3 years ago
<th class="p-1" style="white-space: nowrap">未结算余额</th>
5 years ago
</tr>
</thead>
<tbody>
@foreach($customers as $item)
3 years ago
@if(!$item->oneBalance)
@continue
@elseif (!($item->oneBalance->balance > 0))
@continue
@endif
5 years ago
<tr>
<td class="p-1">{{ $loop->iteration }}</td>
<td class="p-1">{{ $item->mobile }}</td>
3 years ago
<td class="p-1">{{ $item->patients->count() ? $item->patients->last()->name : "无" }}</td>
5 years ago
<td class="p-1">{{ date("Y-m-d H:i:s",$before_datetime) }}</td>
3 years ago
<td class="p-1">{{ $item->oneBalance->balance }}</td>
5 years ago
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@include("plugins.datatable")
@endsection