% layout 'admin'; % title 'Users'; % content_for javascript => begin % end % if ( my $error = flash 'error' ) { % } elsif ( my $success = flash 'success' ) { % }

User Details

Leave blank unless you want to change their password

% if ( my $customer_rs = $user->entity->customer ) {

Customer Details

% } elsif ( my $org_rs = $user->entity->organisation ) {

Organisation Details

% } else {

Warning!

User is not a customer or an organisation
% }

Transactions

% for my $transaction ( $transactions->all ) {
From: <%= $transaction->buyer->name %>
To: <%= $transaction->seller->name %>
Value: <%= $transaction->value %>
Submitted At: <%= $transaction->submitted_at %>
Purchase Time: <%= $transaction->purchase_time %>
% }
%= bootstrap_pagination( $c->param('page') || 1, $transactions->pager->last_page, { class => 'justify-content-center' } );