Skip to content

Commit a55be19

Browse files
Merge remote-tracking branch 'origin/main' into chore/merge-main-into-develop
# Conflicts: # backend/lang/pl.json # backend/resources/views/packaging/admin.blade.php # backend/resources/views/packaging/eans/index.blade.php # backend/resources/views/packaging/station.blade.php
2 parents f106097 + d1c7b51 commit a55be19

7 files changed

Lines changed: 108 additions & 102 deletions

File tree

backend/README.md

Lines changed: 8 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,11 @@
1-
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
1+
# OpenMES — Laravel backend
22

3-
<p align="center">
4-
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
5-
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
6-
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
7-
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
8-
</p>
3+
This directory contains the Laravel application that powers OpenMES.
94

10-
## About Laravel
5+
For project overview, features, installation, and license, see the root
6+
[README.md](../README.md). OpenMES is released under the **GNU AGPL-3.0**
7+
(see [LICENSE](../LICENSE)).
118

12-
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
13-
14-
- [Simple, fast routing engine](https://laravel.com/docs/routing).
15-
- [Powerful dependency injection container](https://laravel.com/docs/container).
16-
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
17-
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
18-
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
19-
- [Robust background job processing](https://laravel.com/docs/queues).
20-
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
21-
22-
Laravel is accessible, powerful, and provides tools required for large, robust applications.
23-
24-
## Learning Laravel
25-
26-
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. You can also check out [Laravel Learn](https://laravel.com/learn), where you will be guided through building a modern Laravel application.
27-
28-
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
29-
30-
## Laravel Sponsors
31-
32-
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com).
33-
34-
### Premium Partners
35-
36-
- **[Vehikl](https://vehikl.com)**
37-
- **[Tighten Co.](https://tighten.co)**
38-
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
39-
- **[64 Robots](https://64robots.com)**
40-
- **[Curotec](https://www.curotec.com/services/technologies/laravel)**
41-
- **[DevSquad](https://devsquad.com/hire-laravel-developers)**
42-
- **[Redberry](https://redberry.international/laravel-development)**
43-
- **[Active Logic](https://activelogic.com)**
44-
45-
## Contributing
46-
47-
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
48-
49-
## Code of Conduct
50-
51-
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
52-
53-
## Security Vulnerabilities
54-
55-
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
56-
57-
## License
58-
59-
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
9+
The underlying [Laravel framework](https://laravel.com) is an independent
10+
project with its own license — refer to Laravel's documentation for those
11+
terms.

backend/composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"$schema": "https://getcomposer.org/schema.json",
3-
"name": "laravel/laravel",
3+
"name": "mes-open/openmes",
44
"type": "project",
5-
"description": "The skeleton application for the Laravel framework.",
6-
"keywords": ["laravel", "framework"],
7-
"license": "MIT",
5+
"description": "OpenMES — open-source Manufacturing Execution System.",
6+
"keywords": ["openmes", "mes", "manufacturing", "laravel"],
7+
"license": "AGPL-3.0-only",
88
"require": {
99
"php": "^8.2",
1010
"aldas/modbus-tcp-client": "^3.6",

backend/lang/en.json

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,5 +1251,45 @@
12511251
"— Select factory —": "— Select factory —",
12521252
"— Select type —": "— Select type —",
12531253
"— Unassigned —": "— Unassigned —",
1254-
"← Back": "← Back"
1254+
"← Back": "← Back",
1255+
"← Packaging overview": "← Packaging overview",
1256+
"Add EAN": "Add EAN",
1257+
"Add EAN code": "Add EAN code",
1258+
"Assign barcodes to production work orders": "Assign barcodes to production work orders",
1259+
"Current shift:": "Current shift:",
1260+
"Delete EAN code :ean?": "Delete EAN code :ean?",
1261+
"EAN Codes": "EAN Codes",
1262+
"EAN Codes — Management": "EAN Codes — Management",
1263+
"EAN Code Management": "EAN Code Management",
1264+
"EAN code": "EAN code",
1265+
"Error": "Error",
1266+
"Last scan": "Last scan",
1267+
"Logged in:": "Logged in:",
1268+
"Manage EAN": "Manage EAN",
1269+
"No EAN": "No EAN",
1270+
"No results": "No results",
1271+
"No scans in this shift": "No scans in this shift",
1272+
"No work orders with assigned EAN codes": "No work orders with assigned EAN codes",
1273+
"Open station": "Open station",
1274+
"Packed": "Packed",
1275+
"Packed (shift)": "Packed (shift)",
1276+
"Packed / Plan": "Packed / Plan",
1277+
"Packaging": "Packaging",
1278+
"Packaging — Overview": "Packaging — Overview",
1279+
"Packaging Station": "Packaging Station",
1280+
"Plan": "Plan",
1281+
"Production work order": "Production work order",
1282+
"Scan EAN code…": "Scan EAN code…",
1283+
"Scan error": "Scan error",
1284+
"Scan history (shift)": "Scan history (shift)",
1285+
"Scanned!": "Scanned!",
1286+
"Scanning active": "Scanning active",
1287+
"Search by order number…": "Search by order number…",
1288+
"Shift:": "Shift:",
1289+
"Total plan": "Total plan",
1290+
"Waiting for scan…": "Waiting for scan…",
1291+
"Work orders to pack": "Work orders to pack",
1292+
"e.g. 5901234123457": "e.g. 5901234123457",
1293+
"pcs.": "pcs.",
1294+
"— select work order —": "— select work order —"
12551295
}

backend/lang/pl.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,6 @@
11241124
"View Details": "Szczegóły",
11251125
"View Steps": "Zobacz kroki",
11261126
"View Template": "Szablon widoku",
1127-
"View Templates": "Szablony widoku",
11281127
"View all": "Zobacz wszystkie",
11291128
"View issues": "Zobacz problemy",
11301129
"View mode": "Tryb widoku",
@@ -1307,7 +1306,6 @@
13071306
"Quantity corrections are not allowed.": "Korekty ilości są niedozwolone.",
13081307
"The correction time window has expired.": "Okno czasowe korekty wygasło.",
13091308
"Production Date": "Data produkcji",
1310-
"Shift": "Zmiana",
13111309
"Download example CSV file for materials import": "Pobierz przykładowy plik CSV do importu materiałów",
13121310
"Download example CSV file for product types import": "Pobierz przykładowy plik CSV do importu typów produktów",
13131311
"Download example CSV file for lines import": "Pobierz przykładowy plik CSV do importu linii produkcyjnych",
@@ -1333,7 +1331,7 @@
13331331
"How long browsers cache preflight responses. 0 = no caching (strictest).": "Jak długo przeglądarki cachują odpowiedzi preflight. 0 = brak cachowania (najsurowsze).",
13341332
"Maintenance Reminder": "Przypomnienie o konserwacji",
13351333
"Packaging": "Pakowanie",
1336-
"Packaging Station": "Stanowisko Pakowania",
1334+
"Packaging Station": "Stanowisko pakowania",
13371335
"Packaging - Overview": "Pakowanie - Przegląd",
13381336
"Open station": "Otwórz stanowisko",
13391337
"Manage EANs": "Zarządzaj kodami EAN",
@@ -1369,7 +1367,7 @@
13691367
"Scanned!": "Zeskanowano!",
13701368
"Scanning error": "Błąd skanowania",
13711369
"Work orders to pack": "Zlecenia do spakowania",
1372-
"Packed": "Spakowano",
1370+
"Packed": "Spakowane",
13731371
"Plan": "Plan",
13741372
"No work orders with assigned EAN codes": "Brak zleceń z przypisanymi kodami EAN",
13751373
"Scan history (shift)": "Historia skanowań (zmiana)",
@@ -1413,5 +1411,21 @@
14131411
"Packed / Plan": "Spakowano / Plan",
14141412
"Delete EAN code": "Usunąć kod EAN",
14151413
"No EAN": "Brak EAN",
1416-
"No results": "Brak wyników"
1414+
"No results": "Brak wyników",
1415+
"← Packaging overview": "← Przegląd pakowania",
1416+
"Assign barcodes to production work orders": "Przypisuj kody kreskowe do zleceń produkcyjnych",
1417+
"Current shift:": "Bieżąca zmiana:",
1418+
"Delete EAN code :ean?": "Usunąć kod EAN :ean?",
1419+
"EAN Codes — Management": "Kody EAN — Zarządzanie",
1420+
"EAN Code Management": "Zarządzanie kodami EAN",
1421+
"Logged in:": "Zalogowany:",
1422+
"Manage EAN": "Zarządzaj EAN",
1423+
"Packaging — Overview": "Pakowanie — Przegląd",
1424+
"Production work order": "Zlecenie produkcyjne",
1425+
"Scan EAN code…": "Skanuj kod EAN…",
1426+
"Scan error": "Błąd skanowania",
1427+
"Scanning active": "Skanowanie aktywne",
1428+
"Shift:": "Zmiana:",
1429+
"Waiting for scan…": "Oczekiwanie na skanowanie…",
1430+
"— select work order —": "— wybierz zlecenie —"
14171431
}

backend/resources/views/packaging/admin.blade.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
@extends('layouts.app')
22

3-
@section('title', __('Packaging - Overview'))
3+
@section('title', __('Packaging Overview'))
44

55
@section('content')
66
<div class="max-w-7xl mx-auto">
77
<x-breadcrumbs :items="[
8-
['label' => __('Dashboard'), 'url' => route('admin.dashboard')],
8+
['label' => 'Dashboard', 'url' => route('admin.dashboard')],
99
['label' => __('Packaging'), 'url' => null],
1010
]" />
1111

1212
<div class="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 mb-6">
1313
<div>
14-
<h1 class="text-2xl font-bold text-gray-800 dark:text-white">{{ __('Packaging - Overview') }}</h1>
15-
<p class="text-sm text-gray-500 mt-1">{{ __('Current shift') }}: {{ (now()->hour >= 6 && now()->hour < 18) ? '06:00 - 18:00' : '18:00 - 06:00' }}</p>
14+
<h1 class="text-2xl font-bold text-gray-800 dark:text-white">{{ __('Packaging Overview') }}</h1>
15+
<p class="text-sm text-gray-500 mt-1">{{ __('Current shift:') }} {{ (now()->hour >= 6 && now()->hour < 18) ? '06:00 18:00' : '18:00 06:00' }}</p>
1616
</div>
1717
<div class="flex gap-2">
1818
<a href="{{ route('packaging.station') }}" class="btn-touch btn-primary">
1919
{{ __('Open station') }}
2020
</a>
2121
<a href="{{ route('packaging.eans.index') }}" class="btn-touch btn-secondary">
22-
{{ __('Manage EANs') }}
22+
{{ __('Manage EAN') }}
2323
</a>
2424
</div>
2525
</div>
@@ -41,16 +41,16 @@
4141
<p class="text-xs text-gray-500 mt-1">{{ __('Backlog') }}</p>
4242
</div>
4343
@php
44-
$completion = $stats['plan'] > 0 ? min(100, round($stats['total_packed'] / $stats['plan'] * 100)) : 0;
44+
$realizacja = $stats['plan'] > 0 ? min(100, round($stats['total_packed'] / $stats['plan'] * 100)) : 0;
4545
@endphp
4646
<div class="card text-center">
47-
<p class="text-3xl font-extrabold {{ $completion >= 100 ? 'text-green-600' : ($completion >= 50 ? 'text-yellow-600' : 'text-red-600') }}">
48-
{{ $completion }}%
47+
<p class="text-3xl font-extrabold {{ $realizacja >= 100 ? 'text-green-600' : ($realizacja >= 50 ? 'text-yellow-600' : 'text-red-600') }}">
48+
{{ $realizacja }}%
4949
</p>
5050
<p class="text-xs text-gray-500 mt-1">{{ __('Completion') }}</p>
5151
<div class="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-1.5 mt-2">
52-
<div class="h-1.5 rounded-full {{ $completion >= 100 ? 'bg-green-500' : ($completion >= 50 ? 'bg-yellow-500' : 'bg-red-500') }}"
53-
style="width: {{ $completion }}%"></div>
52+
<div class="h-1.5 rounded-full {{ $realizacja >= 100 ? 'bg-green-500' : ($realizacja >= 50 ? 'bg-yellow-500' : 'bg-red-500') }}"
53+
style="width: {{ $realizacja }}%"></div>
5454
</div>
5555
</div>
5656
</div>
@@ -66,10 +66,10 @@
6666
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700 text-sm">
6767
<thead class="bg-gray-50 dark:bg-gray-800">
6868
<tr>
69-
<th class="px-4 py-2.5 text-left text-xs font-semibold text-gray-500 uppercase">{{ __('Order') }}</th>
69+
<th class="px-4 py-2.5 text-left text-xs font-semibold text-gray-500 uppercase">{{ __('Work Order') }}</th>
7070
<th class="px-4 py-2.5 text-left text-xs font-semibold text-gray-500 uppercase">{{ __('Product') }}</th>
7171
<th class="px-4 py-2.5 text-left text-xs font-semibold text-gray-500 uppercase">{{ __('Line') }}</th>
72-
<th class="px-4 py-2.5 text-left text-xs font-semibold text-gray-500 uppercase">{{ __('EAN') }}</th>
72+
<th class="px-4 py-2.5 text-left text-xs font-semibold text-gray-500 uppercase">EAN</th>
7373
<th class="px-4 py-2.5 text-right text-xs font-semibold text-gray-500 uppercase">{{ __('Packed') }}</th>
7474
<th class="px-4 py-2.5 text-right text-xs font-semibold text-gray-500 uppercase">{{ __('Plan') }}</th>
7575
<th class="px-4 py-2.5 text-left text-xs font-semibold text-gray-500 uppercase w-32">{{ __('Progress') }}</th>
@@ -105,7 +105,7 @@
105105
</span>
106106
@elseif($item['status'] === 'DONE')
107107
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-300">
108-
{{ __('In progress') }}
108+
{{ __('In Progress') }}
109109
</span>
110110
@else
111111
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300">

0 commit comments

Comments
 (0)