11@extends (' layouts.app' )
22
3- @section (' title' , ' Zarządzanie kodami EAN ' )
3+ @section (' title' , __ ( ' EAN Code Management ' ) )
44
55@section (' content' )
66<div class =" max-w-7xl mx-auto" >
77 <x-breadcrumbs :items =" [
88 ['label' => 'Dashboard', 'url' => route('admin.dashboard')],
9- ['label' => 'Pakowanie' , 'url' => route('packaging.overview')],
10- ['label' => 'Kody EAN' , 'url' => null],
9+ ['label' => __('Packaging') , 'url' => route('packaging.overview')],
10+ ['label' => __(' EAN Codes') , 'url' => null],
1111 ]" />
1212
1313 <div class =" flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 mb-6" >
1414 <div >
15- <h1 class =" text-2xl font-bold text-gray-800 dark:text-white" >Kody EAN — Zarządzanie </h1 >
16- <p class =" text-sm text-gray-500 mt-1" >Przypisuj kody kreskowe do zleceń produkcyjnych </p >
15+ <h1 class =" text-2xl font-bold text-gray-800 dark:text-white" >{{ __ ( ' EAN Codes — Management ' ) } } </h1 >
16+ <p class =" text-sm text-gray-500 mt-1" >{{ __ ( ' Assign barcodes to production work orders ' ) } } </p >
1717 </div >
18- <a href =" {{ route (' packaging.overview' ) } }" class =" btn-touch btn-secondary" >← Przegląd pakowania </a >
18+ <a href =" {{ route (' packaging.overview' ) } }" class =" btn-touch btn-secondary" >{{ __ ( ' ← Packaging overview ' ) } } </a >
1919 </div >
2020
2121 @if (session (' success' ) )
2626
2727 {{-- Add EAN form ─────────────────────────────────────────────────────── --}}
2828 <div class =" card mb-6" x-data =" { workOrderId: '' }" >
29- <h2 class =" text-sm font-semibold text-gray-700 dark:text-gray-300 uppercase tracking-wide mb-4" >Dodaj kod EAN</h2 >
29+ <h2 class =" text-sm font-semibold text-gray-700 dark:text-gray-300 uppercase tracking-wide mb-4" >{{ __ ( ' Add EAN code ' ) } } </h2 >
3030 <form method =" POST" action =" {{ route (' packaging.eans.store' ) } }" class =" grid grid-cols-1 sm:grid-cols-3 gap-4" >
3131 @csrf
3232 <div >
33- <label class =" form-label" >Zlecenie produkcyjne </label >
33+ <label class =" form-label" >{{ __ ( ' Production work order ' ) } } </label >
3434 <select name =" work_order_id" class =" form-input w-full" required >
35- <option value =" " >— wybierz zlecenie — </option >
35+ <option value =" " >{{ __ ( ' — select work order — ' ) } } </option >
3636 @foreach ($workOrders as $wo )
3737 <option value =" {{ $wo -> id } }" @selected (old (' work_order_id' ) == $wo -> id )>
3838 {{ $wo -> order_no } }{{ $wo -> productType ? ' — ' . $wo -> productType -> name : ' ' } }
4444 @enderror
4545 </div >
4646 <div >
47- <label class =" form-label" >Kod EAN</label >
47+ <label class =" form-label" >{{ __ ( ' EAN code ' ) } } </label >
4848 <input type =" text" name =" ean" value =" {{ old (' ean' ) } }" class =" form-input w-full font-mono"
49- placeholder =" np. 5901234123457" required maxlength =" 100" >
49+ placeholder =" {{ __ ( ' e.g. 5901234123457' ) } } " required maxlength =" 100" >
5050 @error (' ean' )
5151 <p class =" text-xs text-red-600 mt-1" >{{ $message } } </p >
5252 @enderror
5353 </div >
5454 <div class =" flex items-end" >
55- <button type =" submit" class =" btn-touch btn-primary w-full sm:w-auto" >Dodaj EAN</button >
55+ <button type =" submit" class =" btn-touch btn-primary w-full sm:w-auto" >{{ __ ( ' Add EAN' ) } } </button >
5656 </div >
5757 </form >
5858 </div >
6161 <form method =" GET" action =" {{ route (' packaging.eans.index' ) } }" class =" card mb-4 py-3" >
6262 <div class =" flex gap-3" >
6363 <input type =" text" name =" search" value =" {{ request (' search' ) } }"
64- class =" form-input flex-1" placeholder =" Szukaj po numerze zlecenia… " >
65- <button type =" submit" class =" btn-touch btn-secondary text-sm" >Szukaj </button >
64+ class =" form-input flex-1" placeholder =" {{ __ ( ' Search by order number… ' ) } } " >
65+ <button type =" submit" class =" btn-touch btn-secondary text-sm" >{{ __ ( ' Search ' ) } } </button >
6666 @if (request (' search' ) )
67- <a href =" {{ route (' packaging.eans.index' ) } }" class =" btn-touch btn-secondary text-sm" >Wyczyść </a >
67+ <a href =" {{ route (' packaging.eans.index' ) } }" class =" btn-touch btn-secondary text-sm" >{{ __ ( ' Clear ' ) } } </a >
6868 @endif
6969 </div >
7070 </form >
@@ -75,11 +75,11 @@ class="form-input flex-1" placeholder="Szukaj po numerze zlecenia…">
7575 <table class =" min-w-full divide-y divide-gray-200 dark:divide-gray-700 text-sm" >
7676 <thead class =" bg-gray-50 dark:bg-gray-800" >
7777 <tr >
78- <th class =" px-4 py-2.5 text-left text-xs font-semibold text-gray-500 uppercase" >Zlecenie </th >
79- <th class =" px-4 py-2.5 text-left text-xs font-semibold text-gray-500 uppercase" >Produkt </th >
80- <th class =" px-4 py-2.5 text-left text-xs font-semibold text-gray-500 uppercase" >Status</th >
81- <th class =" px-4 py-2.5 text-left text-xs font-semibold text-gray-500 uppercase" >Kody EAN</th >
82- <th class =" px-4 py-2.5 text-right text-xs font-semibold text-gray-500 uppercase" >Spakowano / Plan</th >
78+ <th class =" px-4 py-2.5 text-left text-xs font-semibold text-gray-500 uppercase" >{{ __ ( ' Work Order ' ) } } </th >
79+ <th class =" px-4 py-2.5 text-left text-xs font-semibold text-gray-500 uppercase" >{{ __ ( ' Product ' ) } } </th >
80+ <th class =" px-4 py-2.5 text-left text-xs font-semibold text-gray-500 uppercase" >{{ __ ( ' Status' ) } } </th >
81+ <th class =" px-4 py-2.5 text-left text-xs font-semibold text-gray-500 uppercase" >{{ __ ( ' EAN Codes ' ) } } </th >
82+ <th class =" px-4 py-2.5 text-right text-xs font-semibold text-gray-500 uppercase" >{{ __ ( ' Packed / Plan' ) } } </th >
8383 </tr >
8484 </thead >
8585 <tbody class =" divide-y divide-gray-100 dark:divide-gray-700/50" >
@@ -102,13 +102,13 @@ class="form-input flex-1" placeholder="Szukaj po numerze zlecenia…">
102102 @forelse ($wo -> eans as $ean )
103103 <div class =" flex items-center gap-2 mb-1" >
104104 <span class =" font-mono text-xs bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 px-2 py-0.5 rounded" >{{ $ean -> ean } } </span >
105- <form method =" POST" action =" {{ route (' packaging.eans.destroy' , $ean ) } }" onsubmit =" return confirm('Usunąć kod EAN {{ $ean -> ean } }? ')" >
105+ <form method =" POST" action =" {{ route (' packaging.eans.destroy' , $ean ) } }" onsubmit =" return confirm('{{ __ ( ' Delete EAN code :ean? ' , [ ' ean ' => $ean -> ean ]) } } ')" >
106106 @csrf @method (' DELETE ' )
107- <button type =" submit" class =" text-xs text-red-500 hover:text-red-700 transition-colors" >Usuń </button >
107+ <button type =" submit" class =" text-xs text-red-500 hover:text-red-700 transition-colors" >{{ __ ( ' Delete ' ) } } </button >
108108 </form >
109109 </div >
110110 @empty
111- <span class =" text-xs text-gray-400" >Brak EAN</span >
111+ <span class =" text-xs text-gray-400" >{{ __ ( ' No EAN' ) } } </span >
112112 @endforelse
113113 </td >
114114 <td class =" px-4 py-3 text-right font-medium text-gray-700 dark:text-gray-300" >
@@ -118,7 +118,7 @@ class="form-input flex-1" placeholder="Szukaj po numerze zlecenia…">
118118 </tr >
119119 @empty
120120 <tr >
121- <td colspan =" 5" class =" px-4 py-10 text-center text-gray-400 text-sm" >Brak wyników </td >
121+ <td colspan =" 5" class =" px-4 py-10 text-center text-gray-400 text-sm" >{{ __ ( ' No results ' ) } } </td >
122122 </tr >
123123 @endforelse
124124 </tbody >
0 commit comments