@extends('admin._layouts.master') @section('content') {{--

Ödeme Sistemi Hakkında

Her ay kullandığınız pakete göre otomatik olarak fatura kesilir.
Sistemimize tanımladığınız kredi kartı ile otomatik olarak ödeme alınır.
--}} {{----------------------------------------------------------------------------------------------------------------------------- subscriptions --}} @if($account)
@transUc('admin.index.balance') @if($account->balance == 0) {{ __('admin.sections.settings.subscriptions.no_balance') }} @else @if(Auth::user()->settingsGet('locale') == 'tr') {{ number_format($account->balance, 0) }}₺ @else €{{ number_format($account->balance * $exchange_rate, 0) }} Approx. *({{ number_format($account->balance, 0) }}TRY) @endif @transUc('admin.index.pay_now') @endif
@if($subscriptions != null)
@foreach ($subscriptions as $item) @if(Auth::user()->settingsGet('locale') == 'tr') {{ __('generic.subscription_packages.' . $item->package) }} - {{ $item->type === 'monthly' ? 'Aylık' : 'Yıllık' }} {{ $item->price }}₺ @if($item->type !== 'monthly' && $item->ending) @transUc('generic.ending') : {{ $item->ending->format('d.m.Y') }} @endif @else {{ __('generic.subscription_packages.' . $item->package) }} {{ $item->type === 'monthly' ? 'Monthly' : 'Yearly' }} €{{ number_format($item->price * $exchange_rate, 0) }} Approx. *({{$item->price}}TRY) @if($item->type !== 'monthly' && $item->ending) @transUc('generic.ending') : {{ $item->ending->format('d.m.Y') }} @endif @endif @endforeach
@endif
{{------------------------------------------------------------------------------------------------------------------------------------- cards --}}

{{ __('admin.index.payment_methods') }}

@if($cards->count() > 0) @foreach($cards as $card) @endforeach
@transUc('models.credit_card.alias') @transUc('models.credit_card.cardholder') @transUc('models.credit_card.card_number') @transUc('models.generic.created_at') @transUc('models.credit_card.expiry_date') @transUc('models.credit_card.is_default')
{{ $card->alias }} {{ $card->cardholder }} xxxx-{{ $card->last_digits }} {{ $card->created_at }} {{ $card->expires }} @if($card->is_default) @endif
@else
{{ __('admin.index.not_card') }}
@endif

{{ __('admin.index.payment_history') }} - {{ __('admin.index.last_10_record') }}

@if($transactions->count() > 0) @foreach($transactions as $transaction) @if(Auth::user()->settingsGet('locale') == 'tr') @else @endif @endforeach
@transUc('models.transaction.date') @transUc('models.transaction.change') @transUc('models.transaction.description')
{{ $transaction->paid_at->format('d.m.Y') }} {{number_format($transaction->amount, 0) }}₺ {!! nl2brwsp($transaction->description) !!}{{ $transaction->paid_at->format('m-d-Y') }} {{number_format($transaction->amount, 0) }} TRY {{ $transaction->amount < 0 ? 'Payment' : 'Subscription fee' }}
@else
{{ __('admin.index.not_record') }}
@endif
@endif @endsection @push('scripts') @endpush