@extends('layouts/contentLayoutMaster') @section('title', __('locale.subscription.logs')) @section('content')

{!! __('locale.description.subscription_logs') !!}

@forelse ($subscription->getLogs() as $key => $log) @empty @endforelse
{{ __('locale.labels.created_at') }} {{ __('locale.labels.message') }}
{{ \App\Library\Tool::formatDateTime($log->created_at) }} {!! __('locale.subscription.log_' . $log->type, $log->getData()) !!}
{{ __('locale.datatables.no_results') }}
@forelse ($subscription->getTransactions() as $key => $invoice) @empty @endforelse
{{ __('locale.labels.created_at') }} {{ __('locale.labels.title') }} {{ __('locale.labels.amount') }} {{ __('locale.labels.status') }}
{{ \App\Library\Tool::formatDate($invoice->created_at) }} {!! $invoice->title !!} @if ($invoice->description)
{!! $invoice->description !!}
@endif
{{ $invoice->amount }} @if($invoice->status == 'failed') @elseif($invoice->status == 'pending' || $invoice->status == 'plan_change' || $invoice->status == 'renew' ) @elseif($invoice->status == 'auto_charge') @else @endif {{ str_replace('_', ' ', $invoice->status) }}
{{ __('locale.datatables.no_results') }}
@endsection