@extends('backend.layouts.main') @section('title') {{ __('Accounts') }} @endsection @section('content')
{{ __('User') }} | @component('components.tables.sortable-column', ['id' => 'balance', 'sort' => $sort, 'order' => $order, 'class' => 'text-right']) {{ __('Balance') }} @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|||||
---|---|---|---|---|---|
{{ $account->id }} | {{ $account->user->name }} @if($account->user->role == App\Models\User::ROLE_ADMIN) {{ __('app.user_role_'.$account->user->role) }} @elseif($account->user->role == App\Models\User::ROLE_BOT) {{ __('app.user_role_'.$account->user->role) }} @endif | {{ $account->_balance }} | {{ $account->created_at->diffForHumans() }} | {{ $account->updated_at->diffForHumans() }} |