Browse Source

All blade files

1Day 3 years ago
parent
commit
6bc01d5ae6

+ 49 - 1
resources/lang/de.json

@@ -35,6 +35,7 @@
     "Resources": "Ressourcen",
     "Count": "Anzahl",
     "Locations": "Standorte",
+    "Node": "Node",
     "Nodes": "Nodes",
     "Nests": "Nests",
     "Eggs": "Eggs",
@@ -49,9 +50,12 @@
     "Payment_ID": "Zahlungs-ID",
     "Payer_ID": "Käufer-ID",
 
+    "Product": "Produkt",
     "Products": "Produkte",
     "Create": "Erstellen",
     "Product Details": "Produktdetails",
+    "Server Details": "Serverdetails",
+
     "Product Linking": "Produktbeziehungen",
     "Name": "Name",
     "Price in": "Preis in ",
@@ -206,7 +210,51 @@
     "Due to system settings you are required to verify your discord account!": "Um das System zu benutzten, musst du deinen Discord Account bestätigen",
     "It looks like this hasnt been set-up correctly! Please contact support.": "Es scheint so, als wäre dies nicht richtig Konfiguriert. Bitte melde dich beim Support",
 
-
+    "Change Password": "Passwort ändern",
+    "Current Password": "Momentanes Passwort",
+    "Save Changes": "Änderungen speichern",
+    "Re-Sync Discord": "Resync Discord",
+    "You are verified!": "Du bist verifiziert!",
+    "By verifying your discord account, you receive extra Credits and increased Server amounts": "Wenn du deinen Discordaccount verifizierst, bekommst du extra Credits und ein erhöhtes Server Limit",
+    "Server configuration": "Server Konfiguration",
+    "Error!": "Fehler!",
+    "Make sure to link your products to nodes and eggs.": "Stelle sicher, dass deine Produkte mit Nodes und Eggs verknüpft sind",
+    "There has to be at least 1 valid product for server creation": "Es muss mindestens 1 aktives Produkt erstellt sein, bevor ein Server erstellt wird",
+    "No products available!": "Keine Produkte verfügbar!",
+    "No nodes have been linked!": "Es wurde keine Nodes verknüpft",
+    "No nests available!": "Keine Nests verfügbar",
+    "No eggs have been linked!": "Es wurde keine Eggs verknüpft",
+    "Software / Games": "Software / Spiele",
+    "Please select software ...": "Bitte Software auswählen",
+    "Specification": "Spezifikationen",
+    "No selection": "Keine Auswahl",
+    "per month": "pro Monat",
+    "Not enough credits!": "Nicht genug Credits!",
+    "Please select a configuration ...": "Konfiguration Auswählen!",
+    "No resources found matching current configuration": "Keine Ressource passt zur momentanen Konfiguration",
+    "No nodes found matching current configuration": "Kein Node passt zur momentanen Konfiguration",
+    "Please select a node ...": "Bitte Node auswählen",
+    "Create server": "Server erstellen",
+    "Use your servers on our": "Verwalte deine Server mit unserem",
+    "pterodactyl panel": "Server panel",
+    "Server limit reached!": "Server Limit erreicht!",
+    "Create Server": "Server erstellen",
+    "Manage": "Verwalten",
+    "Delete server": "Server löschen",
+    "Price per Hour": "Preis pro Stunde",
+    "Price per Month": "Preis pro Monat",
+
+    "Date": "Datum",
+    "To": "Zu",
+    "From": "Von",
+    "Pending": "Wartend",
+    "Subtotal": "Zwischensumme",
+    "Submit Payment": "Zahlung bestätigen",
+    "Payment Methods": "Zahlungsmethoden",
+    "By purchasing this product you agree and accept our terms of service": "Mit dem kauf akzeptierst du unsere TOS",
+    "There are no store products!": "Es gibt keine Produkte",
+    "The store is not correctly configured!": "Der Laden wurde nicht richtig konfiguriert",
+    "Out of Credits in": "Keine :credits mehr in"
 
 
 

+ 1 - 1
resources/views/admin/configurations/editModel.blade.php

@@ -33,7 +33,7 @@
                 <!-- Modal footer -->
                 <div class="modal-footer">
                     <button type="button" class="btn btn-danger" data-dismiss="modal">{{__('Cancel')}}</button>
-                    <button type="submit" class="btn btn-primary">{{__('Save')}}'</button>
+                    <button type="submit" class="btn btn-primary">{{__('Save')}}</button>
                 </div>
             </form>
         </div>

+ 8 - 8
resources/views/home.blade.php

@@ -6,11 +6,11 @@
         <div class="container-fluid">
             <div class="row mb-2">
                 <div class="col-sm-6">
-                    <h1>Dashboard</h1>
+                    <h1>{{__('Dashboard')}}</h1>
                 </div>
                 <div class="col-sm-6">
                     <ol class="breadcrumb float-sm-right">
-                        <li class="breadcrumb-item"><a class="text-muted" href="">Dashboard</a></li>
+                        <li class="breadcrumb-item"><a class="text-muted" href="">{{__('Dashboard')}}</a></li>
                     </ol>
                 </div>
             </div>
@@ -28,7 +28,7 @@
                         <span class="info-box-icon bg-info elevation-1"><i class="fas fa-server"></i></span>
 
                         <div class="info-box-content">
-                            <span class="info-box-text">Servers</span>
+                            <span class="info-box-text">{{__('Servers')}}</span>
                             <span class="info-box-number">{{Auth::user()->servers()->count()}}</span>
                         </div>
                         <!-- /.info-box-content -->
@@ -58,8 +58,8 @@
                         <span class="info-box-icon bg-warning elevation-1"><i class="fas fa-chart-line"></i></span>
 
                         <div class="info-box-content">
-                            <span class="info-box-text">{{CREDITS_DISPLAY_NAME}} usage</span>
-                            <span class="info-box-number">{{number_format($useage, 2, '.', '')}} <sup>per month</sup></span>
+                            <span class="info-box-text">{{CREDITS_DISPLAY_NAME}} {{__('Usage')}}</span>
+                            <span class="info-box-number">{{number_format($useage, 2, '.', '')}} <sup>{{__('per month')}}</sup></span>
                         </div>
                         <!-- /.info-box-content -->
                     </div>
@@ -73,7 +73,7 @@
                         <span class="info-box-icon {{$bg}} elevation-1">
                         <i class="fas fa-hourglass-half"></i></span>
                             <div class="info-box-content">
-                                <span class="info-box-text">Out of {{CREDITS_DISPLAY_NAME}} in </span>
+                                <span class="info-box-text">{{__('Out of Credits in',["credits"=>CREDITS_DISPLAY_NAME])}} </span>
                                 <span class="info-box-number">{{$boxText}}<sup>{{$unit}}</sup></span>
                             </div>
                         </div>
@@ -93,7 +93,7 @@
                         <div class="card-header">
                             <h3 class="card-title">
                                 <i class="fas fa-link mr-2"></i>
-                                Useful Links
+                                {{__('Useful Links')}}
                             </h3>
                         </div>
                         <!-- /.card-header -->
@@ -121,7 +121,7 @@
                         <div class="card-header">
                             <h3 class="card-title">
                                 <i class="fas fa-history mr-2"></i>
-                                Activity Log
+                                {{__('Activity Logs')}}
                             </h3>
                         </div>
                         <!-- /.card-header -->

+ 12 - 18
resources/views/profile/index.blade.php

@@ -109,7 +109,7 @@
                                         <div class="col">
                                             <div class="row">
                                                 <div class="col">
-                                                    <div class="form-group"><label>Name</label> <input
+                                                    <div class="form-group"><label>{{__('Name')}}</label> <input
                                                             class="form-control @error('name') is-invalid @enderror"
                                                             type="text" name="name"
                                                             placeholder="{{$user->name}}" value="{{$user->name}}">
@@ -124,7 +124,7 @@
                                             </div>
                                             <div class="row">
                                                 <div class="col">
-                                                    <div class="form-group"><label>Email</label> <input
+                                                    <div class="form-group"><label>{{__('Email')}}</label> <input
                                                             class="form-control @error('email') is-invalid @enderror"
                                                             type="text"
                                                             placeholder="{{$user->email}}" name="email"
@@ -142,10 +142,10 @@
                                     </div>
                                     <div class="row">
                                         <div class="col-12 col-sm-6 mb-3">
-                                            <div class="mb-3"><b>Change Password</b></div>
+                                            <div class="mb-3"><b>{{__('Change Password')}}</b></div>
                                             <div class="row">
                                                 <div class="col">
-                                                    <div class="form-group"><label>Current Password</label> <input
+                                                    <div class="form-group"><label>{{__('Current Password')}}</label> <input
                                                             class="form-control @error('current_password') is-invalid @enderror"
                                                             name="current_password" type="password"
                                                             placeholder="••••••">
@@ -160,7 +160,7 @@
                                             </div>
                                             <div class="row">
                                                 <div class="col">
-                                                    <div class="form-group"><label>New Password</label> <input
+                                                    <div class="form-group"><label>{{__('New Password')}}</label> <input
                                                             class="form-control @error('new_password') is-invalid @enderror"
                                                             name="new_password" type="password" placeholder="••••••">
 
@@ -174,8 +174,7 @@
                                             </div>
                                             <div class="row">
                                                 <div class="col">
-                                                    <div class="form-group"><label>Confirm <span
-                                                                class="d-none d-xl-inline">Password</span></label>
+                                                    <div class="form-group"><label>{{__('Confirm Password')}}</span></label>
                                                         <input
                                                             class="form-control @error('new_password_confirmation') is-invalid @enderror"
                                                             name="new_password_confirmation" type="password"
@@ -193,28 +192,23 @@
                                         @if(!empty(env('DISCORD_CLIENT_ID')) && !empty(env('DISCORD_CLIENT_SECRET')))
                                             <div class="col-12 col-sm-5 offset-sm-1 mb-3">
                                                 @if(is_null(Auth::user()->discordUser))
-                                                    <b>Link your discord account!</b>
+                                                    <b>{{__('Link your discord account!')}}</b>
                                                     <div class="verify-discord">
                                                         <div class="mb-3">
                                                             @if($credits_reward_after_verify_discord)
-                                                                <p>By verifying your discord account, you receive an
-                                                                    extra
-                                                                    <b><i
-                                                                            class="fa fa-coins mx-1"></i>{{$credits_reward_after_verify_discord}}
-                                                                    </b> {{CREDITS_DISPLAY_NAME}} and increased server
-                                                                    limit
+                                                                <p>{{__('By verifying your discord account, you receive extra Credits and increased Server amounts')}}
                                                                 </p>
                                                             @endif
                                                         </div>
                                                     </div>
 
                                                     <a class="btn btn-light" href="{{route('auth.redirect')}}">
-                                                        <i class="fab fa-discord mr-2"></i>Login with Discord
+                                                        <i class="fab fa-discord mr-2"></i>{{__('Login with Discord')}}
                                                     </a>
                                                 @else
                                                     <div class="verified-discord">
                                                         <div class="my-3 callout callout-info">
-                                                            <p>You are verified!</p>
+                                                            <p>{{__('You are verified!')}}</p>
                                                         </div>
                                                     </div>
                                                     <div class="row pl-2">
@@ -233,7 +227,7 @@
                                                             </div>
                                                             <div class="small-box-footer">
                                                                 <a href="{{route('auth.redirect')}}">
-                                                                    <i class="fab fa-discord mr-1"></i>Re-Sync Discord
+                                                                    <i class="fab fa-discord mr-1"></i>{{__('Re-Sync Discord')}}
                                                                 </a>
                                                             </div>
                                                         </div>
@@ -245,7 +239,7 @@
                                     </div>
                                     <div class="row">
                                         <div class="col d-flex justify-content-end">
-                                            <button class="btn btn-primary" type="submit">Save Changes</button>
+                                            <button class="btn btn-primary" type="submit">{{__('Save Changes')}}</button>
                                         </div>
                                     </div>
 

+ 8 - 8
resources/views/servers/create.blade.php

@@ -6,14 +6,14 @@
         <div class="container-fluid">
             <div class="row mb-2">
                 <div class="col-sm-6">
-                    <h1>Servers</h1>
+                    <h1>{{__('Servers')}}</h1>
                 </div>
                 <div class="col-sm-6">
                     <ol class="breadcrumb float-sm-right">
-                        <li class="breadcrumb-item"><a href="{{ route('home') }}">Dashboard</a></li>
-                        <li class="breadcrumb-item"><a href="{{ route('servers.index') }}">Servers</a>
+                        <li class="breadcrumb-item"><a href="{{ route('home') }}">{{__('Dashboard')}}</a></li>
+                        <li class="breadcrumb-item"><a href="{{ route('servers.index') }}">{{__('Servers')}}</a>
                         <li class="breadcrumb-item"><a class="text-muted"
-                                                       href="{{ route('servers.create') }}">Create</a>
+                                                       href="{{ route('servers.create') }}">{{__('Create')}}</a>
                         </li>
                     </ol>
                 </div>
@@ -114,7 +114,7 @@
 
                                 <div class="col-md-6">
                                     <div class="form-group">
-                                        <label for="egg">{{__('Specification ')}}</label>
+                                        <label for="egg">{{__('Specification')}}</label>
                                         <div>
                                             <select id="egg"
                                                     required
@@ -194,7 +194,7 @@
                     <div class="card">
                         <div class="card-header">
                             <div class="card-title">
-                                <i class="fas fa-list mr-2"></i>{{__('Server details')}}
+                                <i class="fas fa-list mr-2"></i>{{__('Server Details')}}
                             </div>
                         </div>
                         <div class="card-body">
@@ -233,7 +233,7 @@
                                     <template x-if="selectedProductObject?.name">
                                         <ul class="pl-0">
                                             <li class="d-flex justify-content-between">
-                                                <small class="text-muted d-inline-block">{{__('CPU')}}</small>
+                                                <small class="text-muted d-inline-block">{{__('Cpu')}}</small>
                                                 <small class="text-muted d-inline-block"
                                                        x-text="selectedProductObject.cpu + ' %'"></small>
                                             </li>
@@ -258,7 +258,7 @@
                                                        x-text="selectedProductObject.backups"></small>
                                             </div>
                                             <div class="d-flex justify-content-between">
-                                               <small class="text-muted d-inline-block">{{__('Allocations')}} ({{__('ports')}})</small>
+                                               <small class="text-muted d-inline-block">{{__('Allocations')}}</small>
                                                <small class="text-muted d-inline-block" x-text="selectedProductObject.allocations"></small>
                                            </div>
                                         </ul>

+ 19 - 20
resources/views/servers/index.blade.php

@@ -6,12 +6,12 @@
         <div class="container-fluid">
             <div class="row mb-2">
                 <div class="col-sm-6">
-                    <h1>Servers</h1>
+                    <h1>{{__('Servers')}}</h1>
                 </div>
                 <div class="col-sm-6">
                     <ol class="breadcrumb float-sm-right">
-                        <li class="breadcrumb-item"><a href="{{route('home')}}">Dashboard</a></li>
-                        <li class="breadcrumb-item"><a class="text-muted" href="{{route('servers.index')}}">Servers</a>
+                        <li class="breadcrumb-item"><a href="{{route('home')}}">{{__('Dashboard')}}</a></li>
+                        <li class="breadcrumb-item"><a class="text-muted" href="{{route('servers.index')}}">{{__('Servers')}}</a>
                         </li>
                     </ol>
                 </div>
@@ -26,9 +26,8 @@
 
             <!-- CUSTOM CONTENT -->
             <div class="d-flex justify-content-between mb-3">
-                <p>Use your servers on our <a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}">pterodactyl panel</a></p>
-                <a @if(Auth::user()->Servers->count() >= Auth::user()->server_limit) disabled="disabled" title="Server limit reached!" @endif href="{{route('servers.create')}}" class="btn @if(Auth::user()->Servers->count() >= Auth::user()->server_limit) disabled @endif btn-primary"><i class="fa fa-plus mr-2"></i>Create
-                    Server</a>
+                <p>{{__('Use your servers on our')}} <a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}">{{__('pterodactyl panel')}}</a></p>
+                <a @if(Auth::user()->Servers->count() >= Auth::user()->server_limit) disabled="disabled" title="{{__('Server limit reached!')}}" @endif href="{{route('servers.create')}}" class="btn @if(Auth::user()->Servers->count() >= Auth::user()->server_limit) disabled @endif btn-primary"><i class="fa fa-plus mr-2"></i>{{__('Create Server')}}</a>
             </div>
 
             <div class="row">
@@ -44,14 +43,14 @@
                                                 <i class="fas fa-ellipsis-v fa-sm fa-fw text-white-50"></i>
                                             </a>
                                             <div class="dropdown-menu dropdown-menu-right shadow animated--fade-in" aria-labelledby="dropdownMenuLink">
-                                                <a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}/server/{{$server->identifier}}"  target="__blank" class="dropdown-item text-info"><i title="manage" class="fas fa-tasks mr-2"></i><span>Manage</span></a>
+                                                <a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}/server/{{$server->identifier}}"  target="__blank" class="dropdown-item text-info"><i title="manage" class="fas fa-tasks mr-2"></i><span>{{__('Manage')}}</span></a>
                                                 @if(!empty(env('PHPMYADMIN_URL')))
-                                                    <a href="{{env('PHPMYADMIN_URL' , 'http://localhost')}}" class="dropdown-item text-info"  target="__blank"><i title="manage" class="fas fa-database mr-2"></i><span>Database</span></a>
+                                                    <a href="{{env('PHPMYADMIN_URL' , 'http://localhost')}}" class="dropdown-item text-info"  target="__blank"><i title="manage" class="fas fa-database mr-2"></i><span>{{__('Database')}}</span></a>
                                                 @endif
                                                 <form method="post" onsubmit="return submitResult();" action="{{route('servers.destroy' , $server->id)}}">
                                                     @csrf
                                                     @method('DELETE')
-                                                    <button class="dropdown-item text-danger"><i title="delete" class="fas fa-trash mr-2"></i><span>Delete server</span></button>
+                                                    <button class="dropdown-item text-danger"><i title="delete" class="fas fa-trash mr-2"></i><span>{{__('Delete server')}}</span></button>
                                                 </form>
                                                 <div class="dropdown-divider"></div>
                                                 <span class="dropdown-item"><i title="Created at" class="fas fa-sync-alt mr-2"></i><span>{{$server->created_at->isoFormat('LL')}}</span></span>
@@ -61,34 +60,34 @@
                                 </div>
                             </div>
                             <div class="card-body">
-                                <span class="text-muted">Server details</span>
+                                <span class="text-muted">{{__('Server Details')}}</span>
                                 <table class="table">
                                     <tr>
-                                        <td>CPU</td>
+                                        <td>{{__('Cpu')}}</td>
                                         <td>{{$server->product->cpu}} %</td>
                                     </tr>
                                     <tr>
-                                        <td>RAM</td>
+                                        <td>{{__('Memory')}}</td>
                                         <td>{{$server->product->memory}} MB</td>
                                     </tr>
                                     <tr>
-                                        <td>Disk</td>
+                                        <td>{{__('Disk')}}</td>
                                         <td>{{$server->product->disk}} MB</td>
                                     </tr>
                                     <tr>
-                                        <td>Databases</td>
+                                        <td>{{__('Databases')}}</td>
                                         <td>{{$server->product->databases}} MySQL</td>
                                     </tr>
                                     <tr>
-                                        <td>Backups</td>
+                                        <td>{{__('Backups')}}</td>
                                         <td>{{$server->product->backups}}</td>
                                     </tr>
                                     <tr>
-                                        <td>Price per Hour</td>
+                                        <td>{{__('Price per Hour')}}</td>
                                         <td>{{number_format($server->product->getHourlyPrice(),2,".", "")}} {{CREDITS_DISPLAY_NAME}}</td>
                                     </tr>
                                     <tr>
-                                        <td>Price per Month</td>
+                                        <td>{{__('Price per Month')}}</td>
                                         <td>{{$server->product->getHourlyPrice()*24*30}} {{CREDITS_DISPLAY_NAME}}</td>
                                     </tr>
                                 </table>
@@ -96,9 +95,9 @@
 
 
                             <div class="card-footer d-flex justify-content-between">
-                                <a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}/server/{{$server->identifier}}"  target="__blank" class="btn btn-info mx-3 w-100"><i class="fas fa-tasks mr-2"></i>Manage</a>
+                                <a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}/server/{{$server->identifier}}"  target="__blank" class="btn btn-info mx-3 w-100"><i class="fas fa-tasks mr-2"></i>{{__('Manage')}}</a>
                                 @if(!empty(env('PHPMYADMIN_URL')))
-                                    <a href="{{env('PHPMYADMIN_URL' , 'http://localhost')}}" target="__blank" class="btn btn-info mx-3 w-100" ><i class="fas fa-database mr-2"></i>Database</a>
+                                    <a href="{{env('PHPMYADMIN_URL' , 'http://localhost')}}" target="__blank" class="btn btn-info mx-3 w-100" ><i class="fas fa-database mr-2"></i>{{__('Database')}}</a>
                                 @endif
                             </div>
 
@@ -115,7 +114,7 @@
 
     <script>
         function submitResult() {
-            return confirm("Are you sure you wish to delete?") !== false;
+            return confirm("{{__('Are you sure you wish to delete?')}}") !== false;
         }
     </script>
 @endsection

+ 23 - 23
resources/views/store/checkout.blade.php

@@ -6,12 +6,12 @@
         <div class="container-fluid">
             <div class="row mb-2">
                 <div class="col-sm-6">
-                    <h1>Store</h1>
+                    <h1>{{__('Store')}}</h1>
                 </div>
                 <div class="col-sm-6">
                     <ol class="breadcrumb float-sm-right">
-                        <li class="breadcrumb-item"><a class="" href="{{route('home')}}">Dashboard</a></li>
-                        <li class="breadcrumb-item"><a class="text-muted" href="{{route('store.index')}}">Store</a></li>
+                        <li class="breadcrumb-item"><a class="" href="{{route('home')}}">{{__('Dashboard')}}</a></li>
+                        <li class="breadcrumb-item"><a class="text-muted" href="{{route('store.index')}}">{{__('Store')}}</a></li>
                     </ol>
                 </div>
             </div>
@@ -34,7 +34,7 @@
                             <div class="col-12">
                                 <h4>
                                     <i class="fas fa-globe"></i> {{ config('app.name', 'Laravel') }}
-                                    <small class="float-right">Date: {{Carbon\Carbon::now()->isoFormat('LL')}}</small>
+                                    <small class="float-right">{{__('Date')}}: {{Carbon\Carbon::now()->isoFormat('LL')}}</small>
                                 </h4>
                             </div>
                             <!-- /.col -->
@@ -42,24 +42,24 @@
                         <!-- info row -->
                         <div class="row invoice-info">
                             <div class="col-sm-4 invoice-col">
-                                To
+                                {{__('To')}}
                                 <address>
                                     <strong>{{config('app.name' , 'Laravel')}}</strong><br>
-                                    Email: {{env('PAYPAL_EMAIL' , env('MAIL_FROM_NAME'))}}
+                                    {{__('Email')}}: {{env('PAYPAL_EMAIL' , env('MAIL_FROM_NAME'))}}
                                 </address>
                             </div>
                             <!-- /.col -->
                             <div class="col-sm-4 invoice-col">
-                                From
+                                {{__('From')}}
                                 <address>
                                     <strong>{{Auth::user()->name}}</strong><br>
-                                    Email: {{Auth::user()->email}}
+                                    {{__('Email')}}: {{Auth::user()->email}}
                                 </address>
                             </div>
                             <!-- /.col -->
                             <div class="col-sm-4 invoice-col">
-                                <b>Status</b><br>
-                                <span class="badge badge-warning">Pending</span><br>
+                                <b>{{__('Status')}}</b><br>
+                                <span class="badge badge-warning">{{__('Pending')}}</span><br>
 {{--                                <b>Order ID:</b> 4F3S8J<br>--}}
                             </div>
                             <!-- /.col -->
@@ -72,10 +72,10 @@
                                 <table class="table table-striped">
                                     <thead>
                                     <tr>
-                                        <th>Quantity</th>
-                                        <th>Product</th>
-                                        <th>Description</th>
-                                        <th>Subtotal</th>
+                                        <th>{{__('Quantity')}}</th>
+                                        <th>{{__('Product')}}</th>
+                                        <th>{{__('Description')}}</th>
+                                        <th>{{__('Subtotal')}}</th>
                                     </tr>
                                     </thead>
                                     <tbody>
@@ -95,34 +95,34 @@
                         <div class="row">
                             <!-- accepted payments column -->
                             <div class="col-6">
-                                <p class="lead">Payment Methods:</p>
+                                <p class="lead">{{__('Payment Methods')}}:</p>
 
                                 <img src="https://www.paypalobjects.com/digitalassets/c/website/logo/full-text/pp_fc_hl.svg" alt="Paypal">
 
                                 <p class="text-muted well well-sm shadow-none" style="margin-top: 10px;">
-                                    By purchasing this product you agree and accept our terms of service</a>
+                                    {{__('By purchasing this product you agree and accept our terms of service')}}</a>
                                 </p>
                             </div>
                             <!-- /.col -->
                             <div class="col-6">
-                                <p class="lead">Amount Due {{Carbon\Carbon::now()->isoFormat('LL')}}</p>
+                                <p class="lead">{{__('Amount Due')}} {{Carbon\Carbon::now()->isoFormat('LL')}}</p>
 
                                 <div class="table-responsive">
                                     <table class="table">
                                         <tr>
-                                            <th style="width:50%">Subtotal:</th>
+                                            <th style="width:50%">{{__('Subtotal')}}:</th>
                                             <td>{{$product->formatToCurrency($product->price)}}</td>
                                         </tr>
                                         <tr>
-                                            <th>Tax ({{$taxpercent}}%)</th>
+                                            <th>{{__('Tax')}} ({{$taxpercent}}%)</th>
                                             <td>{{$product->formatToCurrency($taxvalue)}}</td>
                                         </tr>
                                         <tr>
-                                            <th>Quantity:</th>
+                                            <th>{{__('Quantity')}}:</th>
                                             <td>1</td>
                                         </tr>
                                         <tr>
-                                            <th>Total:</th>
+                                            <th>{{__('Total')}}:</th>
                                             <td>{{$product->formatToCurrency($total)}}</td>
                                         </tr>
                                     </table>
@@ -135,8 +135,8 @@
                         <!-- this row will not appear when printing -->
                         <div class="row no-print">
                             <div class="col-12">
-                                <a href="{{route('payment.pay' , $product->id)}}" type="button" class="btn btn-success float-right"><i class="far fa-credit-card mr-2"></i> Submit
-                                    Payment
+                                <a href="{{route('payment.pay' , $product->id)}}" type="button" class="btn btn-success float-right"><i class="far fa-credit-card mr-2"></i> {{__('Submit
+                                    Payment')}}
                                 </a>
                             </div>
                         </div>

+ 8 - 8
resources/views/store/index.blade.php

@@ -7,12 +7,12 @@
         <div class="container-fluid">
             <div class="row mb-2">
                 <div class="col-sm-6">
-                    <h1>Store</h1>
+                    <h1>{{__('Store')}}</h1>
                 </div>
                 <div class="col-sm-6">
                     <ol class="breadcrumb float-sm-right">
-                        <li class="breadcrumb-item"><a class="" href="{{route('home')}}">Dashboard</a></li>
-                        <li class="breadcrumb-item"><a class="text-muted" href="{{route('store.index')}}">Store</a></li>
+                        <li class="breadcrumb-item"><a class="" href="{{route('home')}}">{{__('Dashboard')}}</a></li>
+                        <li class="breadcrumb-item"><a class="text-muted" href="{{route('store.index')}}">{{__('Store')}}</a></li>
                     </ol>
                 </div>
             </div>
@@ -26,7 +26,7 @@
 
             <div class="text-right mb-3">
                 <button type="button" data-toggle="modal" data-target="#redeemVoucherModal" class="btn btn-primary">
-                    <i class="fas fa-money-check-alt mr-2"></i>Redeem code
+                    <i class="fas fa-money-check-alt mr-2"></i>{{__('Redeem code')}}
                 </button>
             </div>
 
@@ -40,9 +40,9 @@
                         <table class="table table-striped table-responsive-sm">
                             <thead>
                             <tr>
-                                <th>Price</th>
-                                <th>Type</th>
-                                <th>Description</th>
+                                <th>{{__('Price')}}</th>
+                                <th>{{__('Type')}}</th>
+                                <th>{{__('Description')}}</th>
                                 <th></th>
                             </tr>
                             </thead>
@@ -65,7 +65,7 @@
             @else
                 <div class="alert alert-danger alert-dismissible">
                     <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
-                    <h4><i class="icon fa fa-ban"></i> @if($products->count() == 0) There are no store products! @else The store is not correctly configured! @endif
+                    <h4><i class="icon fa fa-ban"></i> @if($products->count() == 0) {{__('There are no store products!')}} @else {{__('The store is not correctly configured!')}} @endif
                     </h4>
                 </div>