@extends('layouts.dashboard') @section('content')

Payout

@php $count = 1; @endphp @foreach($cyclesSponsored as $key => $cycleSponsored) @php $count++ @endphp @endforeach
Date Number of unit Farm cycle Sponsorship Status Payout Status Return Payout Date Action
{{$cycleSponsored->created_at->format('d.m.Y')}} {{$cycleSponsored->created_at->format('H:i')}}
{{$cycleSponsored->units}}
{{$cycleSponsored->farmingcycle->name}}
{{ $cycleSponsored->transaction->status->name}}
{{ $cycleSponsored->farmingcycle->status->name}}
{{$cycleSponsored->return}}
{{$cycleSponsored->farmingcycle->payout_date->format("F j, Y")}} @if(!$cycleSponsored->hasRetained() && $cycleSponsored->farmingcycle->isPaidOut())
@csrf
@elseif($cycleSponsored->hasRetained()) Action: {{$cycleSponsored->retain->type()}} @if($cycleSponsored->retain->hasFarmRetain())

Vest: NGN {{number_format($cycleSponsored->retain->vest)}}

Pay: NGN {{number_format($cycleSponsored->retain->pay)}}

Retain: NGN {{number_format($cycleSponsored->retain->retain)}}

@endif @else Not Available @endif
{{-- @include('includes.javascript.retain-sponsorship')--}} @endsection @push('scripts') @endpush