@extends('frontend.layouts.main') @section('title') {{ __('Withdrawals') }} @endsection @section('content')
{{ __('Withdraw') }}
@if($withdrawals->isEmpty()) @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) @endforeach
{{ $withdrawal->method->name }} {{ $withdrawal->_amount }} {{ $withdrawal->status_title }} {{ $withdrawal->created_at->diffForHumans() }} {{ $withdrawal->updated_at->diffForHumans() }}
{{ $withdrawals->appends(['sort' => $sort])->appends(['order' => $order])->links() }}
@endif @endsection