@extends('layouts.panel') @section('title', 'Registrations') @section('page-title', '') @section('content') @php $user = auth()->user(); @endphp @if(!$user || !optional($user->role)->name === 'admin')
You do not have permission to access this page.
@endif
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
{{-- --}} @foreach($registrations as $reg) {{-- --}} @endforeach
Paper ID Name Surname EmailPhone NumberPayment Total Payment Status Payment Details Degree Membership IEEE Certificate Student Certificate ASCS Member? Presentation Type Presenter Name Extra Papers Note Last Update Actions
{{ $reg->current_paper_id ?? '-' }} {{ trim(($reg->user->name ?? '-') . ' ' . ($reg->user->surname ?? '')) }} {{ $reg->user->email ?? '-' }}{{ $reg->phone_number ?? '-' }}${{ number_format((float) ($reg->payment_total ?? 0), 2) }} @php $symbol = '$'; if ($reg->payment_currency === 'EUR') $symbol = '€'; elseif ($reg->payment_currency === 'TRY') $symbol = '₺'; @endphp
Received: {{ $reg->payment_received_amount !== null ? $symbol . number_format((float)$reg->payment_received_amount, 2) : '-' }}
Method: {{ $reg->payment_method ? ($reg->payment_method === 'paypal' ? 'PayPal' : 'IBAN') : '-' }}
{{ $reg->unvan_label ?? '-' }} {{ $reg->membership_type_label ?? '-' }} @if(!empty($reg->ieee_certificate) && in_array($reg->membership_type, [1, 3])) View @else - @endif @if(!empty($reg->student_certificate) && in_array($reg->membership_type, [3, 4])) View @else - @endif {{ $reg->is_ascs_member ? 'Yes' : 'No' }} {{ $reg->presentation_type_label ?? '-' }} {{ $reg->presenter_name ?? '-' }} @php $paperIds = is_array($reg->selected_papers) ? $reg->selected_papers : []; @endphp {{ count($paperIds) }} @if(count($paperIds)) @endif @php $note = $reg->note ?? ''; @endphp @if($note)
{{ $note }} @if(strlen($note) > 50) @endif
@else - @endif
{{ $reg->updated_at ? $reg->updated_at->format('d.m.Y') : '-' }}
@foreach($listeners as $l) @endforeach
ID Name Surname Email Institution Phone Degree Participation Payment Status Payment Details Note Last Update Actions
{{ $l->id }} {{ $l->name }} {{ $l->surname }} {{ $l->email }} {{ $l->institution }} {{ $l->phone_number }} {{ $l->degree_label ?? '-' }} {{ $l->participation_type_label ?? '-' }} @php $symbol = '$'; if ($l->payment_currency === 'EUR') $symbol = '€'; elseif ($l->payment_currency === 'TRY') $symbol = '₺'; @endphp
Received: {{ $l->payment_received_amount !== null ? $symbol . number_format($l->payment_received_amount, 2) : '-' }}
Method: {{ $l->payment_method ? ($l->payment_method === 'paypal' ? 'PayPal' : 'IBAN') : '-' }}
@php $note = $l->note ?? ''; @endphp @if($note)
{{ $note }} @if(strlen($note) > 50) @endif
@else - @endif
{{ $l->updated_at ? $l->updated_at->format('d.m.Y') : '-' }}
@endsection