@extends('layouts.backend.app') @section('title', 'Select your plan') @section('head') @include('layouts.backend.partials.headersection',['title'=>'Select your plan']) @endsection @section('content')
@if (Session::has('message'))
{{ Session::get('message') }}
@endif
@foreach ($plans ?? [] as $plan)
@endforeach

{{ __('Your Transactions') }}

@foreach ($orders ?? [] as $order) @endforeach
{{ __('Payment Id') }} {{ __('Plan') }} {{ __('Getway') }} {{ __('Amount') }} {{ __('Status') }} {{ __('Payment Status') }} {{ __('Order At') }} {{ __('Expire') }} {{ __('Action') }}
{{ $order->payment_id }} {{ $order->plan->name }} {{ $order->getway->name }} {{ $order->amount }} @php $pay_status = [ 0 => ['class' => 'badge-danger', 'text' => 'Rejected'], 1 => ['class' => 'badge-primary', 'text' => 'Paid'], 2 => ['class' => 'badge-warning', 'text' => 'Pending'], 3 => ['class' => 'badge-warning', 'text' => 'Pending'], ][$order->payment_status]; @endphp {{ $pay_status['text'] }} @php $status = [ 0 => ['class' => 'badge-danger', 'text' => 'Rejected'], 1 => ['class' => 'badge-primary', 'text' => 'Accepted'], 2 => ['class' => 'badge-danger', 'text' => 'Expired'], 3 => ['class' => 'badge-warning', 'text' => 'Pending'], 4 => ['class' => 'badge-danger', 'text' => 'Trashed'], ][$order->status]; @endphp {{ $status['text'] }} {{ $order->created_at->isoFormat('LL') }} {{ \Carbon\Carbon::parse($order->exp_date)->isoFormat('LL') }}
{{ $orders->links('vendor.pagination.bootstrap-4') }}
@endsection