@extends('frontend.layouts.main')
@section('title')
{{ __('Deposits') }}
@endsection
@section('content')
@if($deposits->isEmpty())
{{ __('There are no deposits 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 ($deposits as $deposit)
|
{{ $deposit->method->name }}
|
{{ $deposit->_amount }}
|
{{ $deposit->status_title }}
|
{{ $deposit->created_at->diffForHumans() }}
|
{{ $deposit->updated_at->diffForHumans() }}
|
@endforeach
{{ $deposits->appends(['sort' => $sort])->appends(['order' => $order])->links() }}
@endif
@endsection