@section('site_title', formatTitle([__('Edit'), __('Payment'), config('settings.title')])) @include('include.breadcrumbs', ['breadcrumbs' => [ ['url' => isset($admin) ? route('admin.dashboard') : route('dashboard'), 'title' => isset($admin) ? __('Admin') : __('Home')], ['url' => isset($admin) ? route('admin.payments') : route('account.payments'), 'title' => __('Payments')], ['title' => __('Edit')], ]])

{{ __('Edit') }}

{{ __('Payment') }}
@include('include.message')
@csrf
{{ __('Plan') }}
{{ $payment->product->name }}
{{ __('Payment ID') }}
{{ $payment->payment_id }}
{{ __('Gateway') }}
{{ config('payment.gateways.' . $payment->gateway)['name'] }}
{{ __('Amount') }}
{{ formatMoney($payment->amount, $payment->plan->currency) }} {{ $payment->plan->currency }} / {{ $payment->interval == 'month' ? __('Month') : __('Year') }}
{{ __('Status') }}
@if($payment->status == 'completed') {{ __('Completed') }} @elseif($payment->status == 'pending') {{ __('Pending') }} @else {{ __('Cancelled') }} @endif
@if((isset($admin) && in_array($payment->status, ['completed', 'cancelled'])) || $payment->status == 'completed')
{{ __('Invoice') }}
@endif
{{ __('Created at') }}
{{ $payment->created_at->tz(Auth::user()->timezone ?? config('app.timezone'))->format(__('Y-m-d')) }}
@if($payment->status == 'pending')
@if(isset($admin))
@endif
@endif
@if(isset($admin)) @if(isset($payment->user))
{{ __('User') }}
{{ __('Name') }}
{{ $payment->user->name }}
{{ __('Email') }}
{{ $payment->user->email }}
@endif @endif