@extends('layouts.app') @section('content')

Medlemsoplysninger

@php $expiring = 'No'; $highlight = ''; $diffInDays = Carbon::parse(Carbon::now())->floatDiffInDays($record->ends_at,false); if(($diffInDays < 8)) { $expiring = 'Yes'; if($record->recurring =='inactive') { $highlight = 'class=expiring'; } } @endphp
@if($record->state=='Approved') @endif {{----}} @if($record->state=='Approved') @endif
Nuværende aftale Pris FaktureringscyklusStartdato SlutdatoStatus
recurring=='active') ? 'checked' : ''}} class="custom-control-input" id="recSwitch" data-id="{{$record->id}}">
{{($record->plan->id=='1' ? 'Månedligt' : ($record->plan->id==2 ? '3 Måneders' : '12 Månedligt' ) ) }} Medlemskab{{$record->plan->title}} kr. {{number_format($record->plan->price * $record->plan->invoice_period,2)}} {{ucwords($record->plan->invoice_period.' '.$record->plan->invoice_interval)}}{{Carbon::parse($record->starts_at)->format('d-m-Y')}} {{Carbon::parse($record->ends_at)->format('d-m-Y')}}{{($record->state=='Approved' && $record->status=='active') ? 'Aktiv': (empty($record->state) ? 'Afventer Dodkendelse' : ucwords($record->status))}} {{($record->state=='Approved' && $diffInDays > 0) ? 'OPGRADERING' : 'FORNYELSE'}}
@if(isset($record->quickpaySubscription) && $record->quickpaySubscription->count()>0)

Transaktionshistorik

@foreach($record->quickpaySubscription as $subscription) @if(isset($subscription->quickpayPayments) && $subscription->quickpayPayments->count()>0) @foreach($subscription->quickpayPayments as $payment) @php if(isset($payment->operations)) { $payOperation = json_decode($payment->operations); $info = end($payOperation); } else { $info = false; } if($payment->type == 'Payment' && $payment->state == 'Approved'){ $payment->type = 'Betaling'; $payment->state = 'Godkendt'; } @endphp @endforeach @endif @endforeach
Dato Total Betalings-i Type / Status
{{Carbon::parse($payment->created_at)->format('d-m-Y h:i A')}} {{ $payment->type === "Refund" ? "-" : "" }} kr. {{ number_format(($payment->amount),2)}} {{$payment->payment_id}} {{$payment->type}} / {{$payment->state}}
@endif
@endsection