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.
129 lines
7.6 KiB
129 lines
7.6 KiB
@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">
|
|
<select class="form-control mr-1" name="project_id"
|
|
onchange="$(this).closest('form').submit()">
|
|
@foreach($projects as $pp)
|
|
<option
|
|
value="{{$pp->id}}" @if($pp->id == $project_id) {{ "selected" }}@endif>{{$pp->name}}</option>
|
|
@endforeach
|
|
</select>
|
|
<select class="form-control" name="month" onchange="$(this).closest('form').submit()">
|
|
@foreach($months as $mm)
|
|
<option value="{{$mm}}" @if($mm == $month) {{ "selected" }}@endif>{{$mm}}</option>
|
|
@endforeach
|
|
</select>
|
|
{{-- <select class="form-control" name="year" onchange="$(this).closest('form').submit()">--}}
|
|
{{-- @foreach($years as $year)--}}
|
|
{{-- <option value="{{$year}}" @if($year == reqeust()->year) {{ "selected" }}@endif>{{$year}}</option>--}}
|
|
{{-- @endforeach--}}
|
|
{{-- </select>--}}
|
|
{{-- <select class="form-control" name="month_duration" onchange="$(this).closest('form').submit()">--}}
|
|
{{-- @foreach($years as $year)--}}
|
|
{{-- <option value="{{$year}}" @if($year == reqeust()->month) {{ "selected" }}@endif>{{$year}}</option>--}}
|
|
{{-- @endforeach--}}
|
|
{{-- </select>--}}
|
|
</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>
|
|
<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>
|
|
<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>
|
|
<th class="p-1" style="white-space: nowrap">退款笔数</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($recharges as $item)
|
|
<tr>
|
|
<td class="p-1">{{ $loop->iteration }}</td>
|
|
<td class="p-1">{{ $item->serial }}</td>
|
|
<td class="p-1">{{ $item->manager ? $item->manager->name : "" }}</td>
|
|
<td class="p-1">{{ $item->paid_at }}</td>
|
|
<td class="p-1">{{ $item->money }}</td>
|
|
<td class="p-1">{{ $item->getPaymentNameAttribute() }}</td>
|
|
<td class="p-1">{{ $item->payment_serial }}</td>
|
|
<td class="p-1">{{ $item->remark }}</td>
|
|
<td class="p-1">{{ $item->order ? $item->order->serial : "" }}</td>
|
|
<td class="p-1">{{ $item->patient ? $item->patient->name : "" }}</td>
|
|
<td class="p-1">{{ $item->order ? $item->order->contact : "" }}</td>
|
|
<td class="p-1">{{ $item->order ? $item->order->mobile : "" }}</td>
|
|
<td class="p-1">{{ $item->refunds_count ? $item->refunds_count : "" }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($refunds as $item)
|
|
<tr>
|
|
<td class="p-1">{{ $loop->iteration }}</td>
|
|
<td class="p-1">{{ $item->serial }}</td>
|
|
<td class="p-1">{{ $item->manager ? $item->manager->name : "" }}</td>
|
|
<td class="p-1">{{ $item->paid_at }}</td>
|
|
<td class="p-1">-{{ $item->money }}</td>
|
|
<td class="p-1">{{ $item->getPaymentLabelAttribute() }}</td>
|
|
<td class="p-1">{{ $item->remark }}</td>
|
|
<td class="p-1">{{ $item->order ? $item->order->serial : "" }}</td>
|
|
<td class="p-1">{{ $item->patient ? $item->patient->name : "" }}</td>
|
|
<td class="p-1">{{ $item->order ? $item->order->contact : "" }}</td>
|
|
<td class="p-1">{{ $item->order ? $item->order->mobile : "" }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@include("plugins.datatable")
|
|
|
|
@endsection
|