@if(count($payments))
{{__('Type')}}
{{__('Status')}}
{{__('Amount')}}
{{__('From')}}
{{__('To')}}
@foreach($payments as $payment)
@if($payment->type == 'stream-access') @if($payment->stream->status == 'in-progress') {{ucfirst(__($payment->type))}} @else @if($payment->stream->settings['dvr'] && $payment->stream->vod_link) {{ucfirst(__($payment->type))}} @else {{ucfirst(__($payment->type))}} @endif @endif @elseif($payment->type == 'post-unlock') {{ucfirst(__($payment->type))}} @elseif($payment->type == 'tip') {{ucfirst(__($payment->type))}} @if($payment->post_id) ({{__("Post")}}) @elseif($payment->stream_id) @if($payment->stream->status == 'in-progress') ({{__("Stream")}}) @else @if($payment->stream->settings['dvr'] && $payment->stream->vod_link) ({{__("Stream")}}) @else ({{__("Stream")}}) @endif @endif @else ({{__("User")}}) @endif @else {{ucfirst(__($payment->type))}} @endif
@switch($payment->status) @case('approved') {{ucfirst(__($payment->status))}} @break @case('initiated') @case('pending') {{ucfirst(__($payment->status))}} @break @case('canceled') @case('refunded') {{ucfirst(__($payment->status))}} @break @case('partially-paid') {{ucfirst(__($payment->status))}} @break @case('declined') {{ucfirst(__($payment->status))}} @break @endswitch
{{$payment->decodedTaxes && Auth::user()->id == $payment->recipient_user_id ? \App\Providers\SettingsServiceProvider::getWebsiteFormattedAmount($payment->amount - $payment->decodedTaxes->taxesTotalAmount) : \App\Providers\SettingsServiceProvider::getWebsiteFormattedAmount($payment->amount) }}
@if($payment->invoice_id && $payment->receiver->id !== \Illuminate\Support\Facades\Auth::user()->id && $payment->status === \App\Model\Transaction::APPROVED_STATUS) @endif
@endforeach
{{ $payments->onEachSide(1)->links() }}
@else

{{__('There are no payments on this account.')}}

@endif