@extends("admin.layouts.layout") @push("header") @endpush @section("content")
项目 所属周期 上月未结算余额 本月收款 本月退款 本月结算 本月未结算余额 院方结算
{{ $project->name }} {{ date("Y年m月", strtotime($month)) }} {{ $prev_month_balance }} {{ $this_month_balances->filter(function($item) { return $item->belongs_type == "App\Models\Recharge"; })->sum("money") }} {{ $this_month_balances->filter(function($item) { return $item->belongs_type == "App\Models\Refund"; })->sum("money") }} {{ $this_month_balances->filter(function($item) { return $item->belongs_type == "App\Models\OrderItems"; })->sum("money") }} {{ $this_month_balance }} @if($project->percent_first_party){{ -$this_month_balances->filter(function($item) { return $item->belongs_type == "App\Models\OrderItems"; })->sum("money") * $project->percent_first_party / 100 }}@else{{ "未设置" }}@endif
@endsection