@extends('backend.layouts.main') @section('title') {{ __('Transactions') }} @endsection @section('content') @if($transactions->isEmpty())
{{ __('User') }} | @component('components.tables.sortable-column', ['id' => 'type', 'sort' => $sort, 'order' => $order]) {{ __('Type') }} @endcomponent @component('components.tables.sortable-column', ['id' => 'amount', 'sort' => $sort, 'order' => $order, 'class' => 'text-right']) {{ __('Amount') }} @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|||||
---|---|---|---|---|---|
{{ $transaction->id }} | {{ $transaction->account->user->name }} @if($transaction->account->user->role == App\Models\User::ROLE_ADMIN) {{ __('app.user_role_'.$transaction->account->user->role) }} @elseif($transaction->account->user->role == App\Models\User::ROLE_BOT) {{ __('app.user_role_'.$transaction->account->user->role) }} @endif | {{ $transaction->transactionable->title ?? '' }} | {{ $transaction->_amount }} | {{ $transaction->created_at->diffForHumans() }} | {{ $transaction->updated_at->diffForHumans() }} |