@extends('layouts.admin') @section('title') Ananas | Payments @endsection @section('breadcrumb') @endsection @section('Payments') active {{session('sidebar_color')}} @endsection @section('content')
Payments table
@foreach($payments as $payment) @endforeach
ID Amount Currency User Membership Status Action

{{$payment->id}}

@if($payment->currency_type=="usd"){{number_format($payment->price,2,'.',',')}} @else {{number_format($payment->price)}} @endif

{{$payment->currency_type}}

@if($payment->user){{$payment->user->email}}@endif

@if($payment->membership){{$payment->membership->title}}@endif

@if($payment->status=='1'){{'پرداخت شده'}}@else {{'نا موفق'}} @endif

listShow @if($payment->user && $payment->membership) @endif
{{ $payments->links() }}
@endsection