@extends('layouts.admin') @push('styles') @endpush @section('main-content')

{{ __('Perserta Plan ') . $model->name }}

@csrf @method('PUT')
Senarai Perserta
@foreach ($model->plans as $plan) @endforeach @foreach($usersWithPlan as $user) @php $total = 0; @endphp @foreach ($user->plans as $plan) @php if($plan->payment_type == App\Models\Plan::PAYMENT_TYPE_CREDIT) $total += $plan->pivot->investment; @endphp @endforeach @endforeach
# Nama{{ $plan->name }}Jumlah Actions
{{ $loop->iteration }} {{ $user->name }}{{ number_format(($plan->pivot->investment / 100), 2) }}{{ number_format(($total / 100), 2) }}
@foreach($usersWithPlan as $user) @foreach ($user->plans as $plan) @endforeach @endforeach
{{-- Modal section --}} @endsection @push('scripts') @endpush