@extends('frontend.layouts.main')
@section('title')
{{ __('Withdrawals') }}
@endsection
@section('content')
@if($withdrawals->isEmpty())
{{ __('There are no withdrawals yet.') }}
@else
@component('components.tables.sortable-column', ['id' => 'method', 'sort' => $sort, 'order' => $order])
{{ __('Method') }}
@endcomponent
@component('components.tables.sortable-column', ['id' => 'amount', 'sort' => $sort, 'order' => $order, 'class' => 'text-right'])
{{ __('Amount') }}
@endcomponent
@component('components.tables.sortable-column', ['id' => 'status', 'sort' => $sort, 'order' => $order, 'class' => 'text-right'])
{{ __('Status') }}
@endcomponent
@component('components.tables.sortable-column', ['id' => 'created', 'sort' => $sort, 'order' => $order, 'class' => 'text-right'])
{{ __('Created') }}
@endcomponent
@component('components.tables.sortable-column', ['id' => 'updated', 'sort' => $sort, 'order' => $order, 'class' => 'text-right'])
{{ __('Updated') }}
@endcomponent
@foreach ($withdrawals as $withdrawal)
|
{{ $withdrawal->method->name }}
|
{{ $withdrawal->_amount }}
|
{{ $withdrawal->status_title }}
|
{{ $withdrawal->created_at->diffForHumans() }}
|
{{ $withdrawal->updated_at->diffForHumans() }}
|
@endforeach
{{ $withdrawals->appends(['sort' => $sort])->appends(['order' => $order])->links() }}
@endif
@endsection