@extends('layouts.app') @section('title', 'パートナー案件') @section('page-title', 'パートナー') @section('page-subtitle', '紹介者(パートナー)に紹介してもらう案件を作ります。何を成果とみなすか(メール登録・LINE登録・購入・イベント申込)と、1件あたりの報酬を案件ごとに決めます。案件を作ったあと、URL管理でパートナーごとの紹介URLを発行します。') @push('styles') @include('partner.partials._styles') @endpush @section('content')
すべて({{ $countAll }}) 公開中({{ $countActive }}) 停止中({{ $countInactive }})
案件
{{ number_format($countAll) }}
うち公開中 {{ number_format($countActive) }}
パートナー
{{ number_format($partnerCount) }}
記録済みの成果
{{ number_format($conversionCount) }}
パートナー一覧 URL管理 設定
案件を作成
@if($campaigns->isEmpty())
{{ $status === '' ? 'パートナー案件がありません' : '該当する案件がありません' }}
@if($status === '')

まず案件を作り、次に「パートナー一覧」で紹介者を登録し、「URL管理」で紹介URLを発行します。

案件を作成 @endif
@else
@foreach($campaigns as $campaign)
{{ $campaign->name }}
{{ $campaign->typeLabel() }}

{{ \Illuminate\Support\Str::limit($campaign->description ?: '説明なし', 80) }}

報酬: {{ $campaign->commissionLabel() }}
承認: {{ $campaign->approvalLabel() }}
@if($campaign->start_at || $campaign->end_at)
{{ $campaign->start_at ? $campaign->start_at->format('Y/m/d H:i') : '—' }} 〜 {{ $campaign->end_at ? $campaign->end_at->format('Y/m/d H:i') : '—' }}
@endif
紹介先URL: {{ $campaign->primaryLpUrl() ? '設定済み' : '未設定' }}
{{ $campaign->statusLabel() }}
@endforeach
@endif @endsection