This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Foodloop-Server/templates/admin/transactions/index.html.ep

102 lines
2.6 KiB
Text
Raw Permalink Normal View History

% layout 'admin';
% title 'Transactions';
% content_for javascript => begin
% end
% if ( my $error = flash 'error' ) {
<div class="alert alert-danger" role="alert">
<strong>Error!</strong> <%= $error %>
</div>
% } elsif ( my $success = flash 'success' ) {
<div class="alert alert-success" role="alert">
<strong>Success!</strong> <%= $success %>
</div>
% }
2018-03-15 16:02:17 +00:00
<div class="card-deck">
<div class="card mb-3 text-center text-white bg-primary">
<div class="card-header card-inverse">
Number of Transactions
</div>
<div class="card-body">
<h2 class="card-title">
%= $weeks->{count}
</h2>
</div>
</div>
<div class="card mb-3 text-center text-white bg-success">
<div class="card-header card-inverse">
Sum of all Transaction Value
</div>
<div class="card-body">
<h2 class="card-title">
%= '£' . $weeks->{sum}
</h2>
</div>
</div>
</div>
<div class="card-deck">
<div class="card mb-3 text-center text-white bg-danger">
<div class="card-header card-inverse">
No. Transactions This Week
</div>
<div class="card-body">
<h2 class="card-title">
%= $weeks->{first_count}
</h2>
</div>
</div>
<div class="card mb-3 text-center text-white bg-danger">
<div class="card-header card-inverse">
No. Transactions Last Week
</div>
<div class="card-body">
<h2 class="card-title">
%= $weeks->{second_count}
</h2>
</div>
</div>
</div>
<div class="card-deck">
<div class="card mb-3 text-center text-white bg-danger">
<div class="card-header card-inverse">
Sum of Transactions This Week
</div>
<div class="card-body">
<h2 class="card-title">
%= $weeks->{first_value}
</h2>
</div>
</div>
<div class="card mb-3 text-center text-white bg-danger">
<div class="card-header card-inverse">
Sum of Transactions Last Week
</div>
<div class="card-body">
<h2 class="card-title">
%= $weeks->{second_value}
</h2>
</div>
</div>
</div>
<div class="card-deck">
<div class="card mb-3 text-center text-white bg-danger">
<div class="card-header card-inverse">
Maximum Transaction Value
</div>
<div class="card-body">
<h2 class="card-title">
%= '£' . $weeks->{max}
</h2>
</div>
</div>
<div class="card mb-3 text-center text-white bg-danger">
<div class="card-header card-inverse">
Average Transaction Value
</div>
<div class="card-body">
<h2 class="card-title">
%= '£' . $weeks->{avg}
</h2>
</div>
</div>
</div>