@extends('admin.layout') @section('title',__('Payments')) @section('css') @endsection @section('breadcrump')

{{ __('Payments') }}

@endsection @section('content')

{{ __('Payments table') }}

{{-- --}}
@php $i=1; @endphp @foreach($payment_requests as $payment_request) @php $i++; @endphp @endforeach
# {{ __('Payment request no.') }} {{ __('User') }} {{ __('User available balance') }} {{ __('Request amount') }} {{ __('Payment Method') }} {{ __('Payment status') }} {{ __('Date') }} {{ __('Action') }}
{{$i}} #{{$payment_request['id']}} @if(isset($payment_request['user'])) {{$payment_request['user']['name']}} @endif @if(isset($payment_request['user'])) {{formated_price($payment_request['user']['total_balance'])}} @endif {{formated_price($payment_request->amount)}} {{__($payment_request['payment_method']['name'])}} @if($payment_request['paid']) {{__('paid')}} @else {{__('unpaid')}} @endif {{$payment_request['created_at']->format('d-m-Y')}}
@csrf @method('put') @if($payment_request['paid']) @else @endif
@csrf @method('delete')
@include('admin.pages.payments._form') @endsection @section('scripts') @include('admin.pages.payments.index_js') @endsection