Skip to content

Commit

Permalink
Fix hard coded currency code
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdecena committed Mar 16, 2018
1 parent ba1513a commit bee94cf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resources/views/admin/orders/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
@if($order->total != $order->total_paid)
<p class="alert alert-danger">
Ooops, there is discrepancy in the total amount of the order and the amount paid. <br />
Total order amount: <strong>Php {{ $order->total }}</strong> <br>
Total amount paid <strong>Php {{ $order->total_paid }}</strong>
Total order amount: <strong>{{ config('cart.currency') }} {{ $order->total }}</strong> <br>
Total amount paid <strong>{{ config('cart.currency') }} {{ $order->total_paid }}</strong>
</p>

@endif
Expand Down
2 changes: 1 addition & 1 deletion resources/views/admin/products/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@endif
</td>
<td>{{ $product->quantity }}</td>
<td>Php {{ $product->price }}</td>
<td>{{ config('cart.currency') }} {{ $product->price }}</td>
</tr>
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/front/accounts.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
</div>
</td>
<td>{{ $order['courier']->name }}</td>
<td><span class="label @if($order['total'] != $order['total_paid']) label-danger @else label-success @endif">Php {{ $order['total'] }}</span></td>
<td><span class="label @if($order['total'] != $order['total_paid']) label-danger @else label-success @endif">{{ config('cart.currency') }} {{ $order['total'] }}</span></td>
<td><p class="text-center" style="color: #ffffff; background-color: {{ $order['status']->color }}">{{ $order['status']->name }}</p></td>
</tr>
@endforeach
Expand Down
4 changes: 4 additions & 0 deletions resources/views/layouts/front/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ function gtag(){dataLayer.push(arguments);}
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ config('app.name') }}</title>
<title>Laracom - Laravel FREE E-Commerce Software</title>
<meta name="description" content="Modern open-source e-commerce framework for free">
<meta name="tags" content="modern, opensource, open-source, e-commerce, framework, free, laravel, php, php7, symfony, shop, shopping, responsive, fast, software, blade, cart, test driven, adminlte, storefront">
<meta name="author" content="Jeff Simons Decena">
<link href="{{ asset('css/style.min.css') }}" rel="stylesheet">

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
Expand Down

0 comments on commit bee94cf

Please sign in to comment.