@extends('layouts.app') @section('title', 'Recurring Invoices') @section('content')
| Profile Name | Customer | Frequency | Interval | Next Run Date | Amount | Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $profile->profile_name }} | {{ $profile->customer->name }} | {{ $profile->frequency }} | Every {{ $profile->interval_value }} {{ Str::plural(Str::replace('ly', ' ', $profile->frequency), $profile->interval_value) }} | {{ \Carbon\Carbon::parse($profile->next_run_date)->format('d M Y') }} | {{ formatCurrency($profile->total_amount) }} | @php $badgeClass = [ 'active' => 'bg-light-success text-success', 'paused' => 'bg-light-warning text-warning', 'stopped' => 'bg-light-danger text-danger' ][$profile->status] ?? 'bg-light-secondary text-secondary'; @endphp {{ $profile->status }} |
|
| No recurring invoice profiles found. Create your first profile. | |||||||