@extends('layoutsutama.master3') @section('content')
Pendaftaran Komunitas/Kelompok
@if (!$snapTokenExists) @endif
@php $discount = 0; $totalPriceAfterDiscount = $jumlah_bayar - $discount; @endphp

Sub Total : Rp. {{number_format($jumlah_bayar, 2)}}

Discount : Rp. {{number_format($diskon,2)}}

Total : Rp. {{number_format($total,2)}}

Peserta : {{$total_peserta}} Orang

@if ($total_peserta >= 1) @if($pesertas[0]->pembayaran != 'Paid')
@csrf



@endif @else Lanjut Pembayaran @endif
@foreach($pesertas as $key => $value) @if($value->lokasi_run == 'BW') @php $lokasi = 'Banyuwangi' @endphp @elseif($value->lokasi_run == 'MN') @php $lokasi = 'Madiun' @endphp @elseif($value->lokasi_run == 'KD') @php $lokasi = 'Kediri' @endphp @else @php $lokasi = 'Surabaya' @endphp @endif @php $discountUnit = 0; $totalPriceAfterDiscountUnit = $value->price - $discountUnit; @endphp @endforeach
No Full Name Bib Name Gender Size Jersey Community Category run Event location Sub Price Discount Price
{{ ++$key }} {{ $value->full_name }} {{ $value->bib_name }} {{ $value->jenis_kelamin }} {{ $value->tshirt_size }} {{ $value->community }} {{ $value->nama_kat_event }} {{ $lokasi }} {{ number_format($value->price,0) }} {{ number_format($discountUnit,0) }} {{ number_format($totalPriceAfterDiscountUnit,0) }}
@section('script') {{-- delete js --}} @endsection @endsection