Sharing Entry

@if($already_shared > 0)
Total 70% Sharing: ₹{{ number_format($total_sharing, 2) }}
Total Shared: ₹{{ number_format($already_shared, 2) }}
Remaining: ₹{{ number_format($remaining_sharing, 2) }}
@endif @if(!empty($previous_sharings) && count($previous_sharings) > 0)
Saved Sharing Entries @if($remaining_sharing > 0 && $sharing_id) @endif
@foreach($previous_sharings as $prev) @endforeach
Date Amount Status Remark Action
{{ $prev->sharing_date ? \Carbon\Carbon::parse($prev->sharing_date)->format('d-M-Y') : 'N/A' }} ₹{{ number_format($prev->sharing_amount, 2) }} {{ $prev->status }} {{ $prev->remark ?: '-' }}
@endif @if($remaining_sharing <= 0 && !$sharing_id)
Sharing Completed: Total 70% sharing amount of ₹{{ number_format($total_sharing, 2) }} has already been paid.
Click Edit on any entry above to modify it.
Close
@else
{{ $sharing_id ? 'Edit Sharing Entry (#' . $sharing_id . ')' : 'New Sharing Entry' }}
@php $types = [ [ 'id' => null, 'name' => 'Select an option', ], [ 'id' => 'Paid', 'name' => 'Paid', ], [ 'id' => 'Pending', 'name' => 'Pending', ], ]; @endphp Status
{{ $sharing_id ? 'Update' : 'Save' }} @if($sharing_id) Cancel Edit @endif Cancel
@endif