@extends('layouts.student') @section('title', __('student.withdrawal.history_title')) @section('content')

{{ __('student.withdrawal.history_title') }}

{{ __('student.withdrawal.history_subtitle') }}

{{ __('student.withdrawal.new_request') }}
@if(session('success')) @endif @if(session('error')) @endif
@if(request()->hasAny(['status', 'start_date', 'end_date'])) {{ __('student.withdrawal.reset') }} @endif
@if($withdrawals->isEmpty())

{{ __('student.withdrawal.no_withdrawals') }}

{{ __('student.withdrawal.create_first') }}
@else
@foreach($withdrawals as $withdrawal) @endforeach
{{ __('student.withdrawal.date') }} {{ __('student.withdrawal.amount') }} {{ __('student.withdrawal.method') }} {{ __('student.withdrawal.status') }} {{ __('student.withdrawal.actions') }}
{{ $withdrawal->created_at->format('d M Y, H:i') }} {{ format_currency($withdrawal->amount) }} @php $method = \App\Enums\PaymentMethod::from($withdrawal->payment_method); @endphp {{ $method->label }} @if($withdrawal->status === 'pending') {{ __('student.withdrawal.pending') }} @elseif($withdrawal->status === 'completed') {{ __('student.withdrawal.completed') }} @elseif($withdrawal->status === 'rejected') {{ __('student.withdrawal.rejected') }} @endif {{ __('student.withdrawal.view') }}
@endif
@if($withdrawals->hasPages()) @endif
@endsection