@extends('layouts.app') @section('title', app()->getLocale() === 'bn' ? 'বিতরণ চক্র' : 'Distribution Cycles') @section('page-title', app()->getLocale() === 'bn' ? 'বিতরণ' : 'Distribution') @section('content')

{{ app()->getLocale() === 'bn' ? 'বিতরণ চক্র তালিকা' : 'Distribution Cycles' }}

+ {{ app()->getLocale() === 'bn' ? 'নতুন চক্র' : 'New Cycle' }}
@forelse($cycles as $cycle) @empty @endforelse
{{ app()->getLocale() === 'bn' ? 'চক্রের নাম' : 'Cycle Name' }} {{ app()->getLocale() === 'bn' ? 'ধরণ' : 'Type' }} {{ app()->getLocale() === 'bn' ? 'পরিবার প্রতি' : 'Per Family' }} {{ app()->getLocale() === 'bn' ? 'বিতরণ সংখ্যা' : 'Disbursements' }} {{ app()->getLocale() === 'bn' ? 'সময়কাল' : 'Period' }} {{ __('Status') }} {{ __('Actions') }}
{{ $cycle->cycle_name }} {{ ucfirst($cycle->cycle_type ?? '—') }} ৳{{ number_format($cycle->amount_per_family) }} {{ $cycle->disbursements_count }} {{ $cycle->start_date?->format('d/m/Y') }} — {{ $cycle->end_date?->format('d/m/Y') }} @php $c = match($cycle->status ?? 'draft') { 'active' => 'green', 'completed' => 'blue', default => 'yellow' }; @endphp {{ ucfirst($cycle->status ?? 'draft') }}
{{ __('No results found') }}
@if($cycles->hasPages())
{{ $cycles->links() }}
@endif
@endsection