@if(($historySummary['summary_mode'] ?? 'verified') === 'all')
  <div class="ar-summary">
    <div class="ar-s-card">
      <div class="ar-s-label">মোট ট্রেইল</div>
      <div class="ar-s-val">{{ (int) ($historySummary['total_trail'] ?? 0) }}</div>
      <div class="ar-s-sub">যতগুলো history row record আছে</div>
    </div>
    <div class="ar-s-card">
      <div class="ar-s-label">মোট ভেরিফাইড</div>
      <div class="ar-s-val">{{ (int) ($historySummary['total_verified'] ?? 0) }}</div>
      <div class="ar-s-sub">বর্তমানে verified আছে এমন account</div>
    </div>
    <div class="ar-s-card">
      <div class="ar-s-label">অটো ভেরিফাইড</div>
      <div class="ar-s-val">{{ (int) ($historySummary['auto_verified'] ?? 0) }}</div>
      <div class="ar-s-sub">বর্তমানে active: voucher, callback, webhook, auto-approved</div>
    </div>
    <div class="ar-s-card">
      <div class="ar-s-label">অ্যাডমিন ভেরিফাইড</div>
      <div class="ar-s-val">{{ (int) ($historySummary['admin_verified'] ?? 0) }}</div>
      <div class="ar-s-sub">বর্তমানে active: manual verify + request approve</div>
    </div>
    <div class="ar-s-card">
      <div class="ar-s-label">ম্যানুয়াল, কমিশন ছাড়া</div>
      <div class="ar-s-val">{{ (int) ($historySummary['manual_skip_verified'] ?? 0) }}</div>
      <div class="ar-s-sub">বর্তমানে active: offline/manual verify, commission skipped</div>
    </div>
    <div class="ar-s-card">
      <div class="ar-s-label">নন-ভেরিফাই / Reject</div>
      <div class="ar-s-val">{{ (int) ($historySummary['non_verified'] ?? 0) }}</div>
      <div class="ar-s-sub">বর্তমানে non-verified / inactive account</div>
    </div>
    <div class="ar-s-card">
      <div class="ar-s-label">রিপেয়ার ট্রেইল</div>
      <div class="ar-s-val">{{ (int) ($historySummary['repair_actions'] ?? 0) }}</div>
      <div class="ar-s-sub">commission repair / reversal history</div>
    </div>
  </div>
@else
  <div class="ar-summary">
    <div class="ar-s-card">
      <div class="ar-s-label">মোট ভেরিফাইড</div>
      <div class="ar-s-val">{{ (int) ($historySummary['total_verified'] ?? 0) }}</div>
      <div class="ar-s-sub">বর্তমানে verified আছে এমন account</div>
    </div>
    <div class="ar-s-card">
      <div class="ar-s-label">ভাউচার ভেরিফাইড</div>
      <div class="ar-s-val">{{ (int) ($historySummary['voucher_verified'] ?? 0) }}</div>
      <div class="ar-s-sub">ভাউচার ব্যালেন্স দিয়ে ভেরিফাই</div>
    </div>
    <div class="ar-s-card">
      <div class="ar-s-label">ডিরেক্ট পেমেন্ট</div>
      <div class="ar-s-val">{{ (int) ($historySummary['direct_verified'] ?? 0) }}</div>
      <div class="ar-s-sub">পেমেন্ট gateway দিয়ে verify</div>
    </div>
    <div class="ar-s-card">
      <div class="ar-s-label">এই সপ্তাহ</div>
      <div class="ar-s-val">{{ (int) ($historySummary['this_week_verified'] ?? 0) }}</div>
      <div class="ar-s-sub">এই সপ্তাহে verify হয়েছে এবং এখনো active আছে</div>
    </div>
    <div class="ar-s-card">
      <div class="ar-s-label">অটো ভেরিফাইড</div>
      <div class="ar-s-val">{{ (int) ($historySummary['auto_verified'] ?? 0) }}</div>
      <div class="ar-s-sub">বর্তমানে active auto-verified account</div>
    </div>
    <div class="ar-s-card">
      <div class="ar-s-label">ম্যানুয়াল, কমিশন ছাড়া</div>
      <div class="ar-s-val">{{ (int) ($historySummary['manual_skip_verified'] ?? 0) }}</div>
      <div class="ar-s-sub">বর্তমানে active: offline/manual verify, commission skipped</div>
    </div>
  </div>
@endif
