@extends('layouts.app') @section('title', '報酬集計') @section('page-title', 'パートナー') @section('page-subtitle', 'パートナーごとの報酬を、未確定・確定・支払済に分けて集計します。確定した報酬は「支払明細」でまとめて締め、振込用CSVを出力できます。') @push('styles') @include('partner.partials._styles') @endpush @section('content')
成約状況 ランキング 報酬集計 支払明細
@include('partner.partials._tracking_notice') @include('partner.partials._report_filters', ['action' => route('partner.rewards.index'), 'showStatus' => false])
「確定(未払い)」の報酬は、支払明細にまとめて振込管理できます。
支払明細を作る
未確定
{{ number_format($totals['pending_reward']) }}
返金・キャンセル猶予の期間中
確定・支払済
{{ number_format($totals['payable_reward']) }}
成果件数
{{ number_format($totals['count']) }}
@if($rows->isEmpty())
集計できる報酬がありません

成果が記録されると、パートナーごとの支払額がここに表示されます。

@else
@foreach($rows as $row) @php $partner = $partners[$row->partner_id] ?? null; @endphp @endforeach
パートナー 成果件数 未確定 確定(未払い) 支払済
@if($partner) {{ $partner->name }} @else (削除済み) @endif {{ number_format((int) $row->conversion_count) }}件 {{ number_format((int) $row->pending_reward) }}円 {{ number_format((int) $row->approved_reward) }}円 {{ number_format((int) $row->paid_reward) }}円
@endif @endsection