@extends('layouts.app') @section('title', 'Profit Rules') @section('content')

Profit Rules

Profit-sharing configuration per investor-project

@can('create', App\Models\Investor::class) Add Rule @endcan
{{-- Filters --}}
Clear
{{-- Table --}}
@forelse ($rules as $rule) @empty @endforelse
# Investor Project Type Value Description Actions
{{ $rule->id }} {{ $rule->investor?->name ?? 'N/A' }} {{ $rule->project?->project_name ?? 'N/A' }} {{ ucfirst($rule->profit_type) }} @if ($rule->profit_type === 'percentage') {{ number_format($rule->profit_value, 2) }}% @else {{ number_format($rule->profit_value, 2) }} @endif {{ Str::limit($rule->description, 40) }}
@can('update', App\Models\Investor::findOrFail($rule->investor_id)) @endcan @can('delete', App\Models\Investor::findOrFail($rule->investor_id))
@csrf @method('DELETE')
@endcan
No profit rules configured.
@if ($rules->hasPages()) @endif
@endsection