Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

Revision 234 | Revision 250 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 234 Revision 249
Zeile 9... Zeile 9...
9
    use Illuminate\Contracts\View\View;
9
    use Illuminate\Contracts\View\View;
Zeile 10... Zeile 10...
10
 
10
 
11
    class ShippingController extends Controller
11
    class ShippingController extends Controller
Zeile -... Zeile 12...
-
 
12
    {
-
 
13
 
-
 
14
        public function __construct()
-
 
15
	{
-
 
16
            $inselversand = array(
-
 
17
                "keine Berücksichtigung",
-
 
18
                "kein Inselversand",
-
 
19
                "nur Inselversand",
-
 
20
	    );
-
 
21
            \View::share( "inselversand", $inselversand );
-
 
22
            $shippingGroups = ShippingGroup::all();
-
 
23
            $versandgruppen = array();
-
 
24
            foreach( $shippingGroups as $shippingGroup )
-
 
25
            {
-
 
26
                $versandgruppen[$shippingGroup->id] = $shippingGroup->name;
-
 
27
            }
12
    {
28
            \View::share( "versandgruppen", $versandgruppen );
13
 
29
	}
14
        public function index(): Factory|View|Application
30
        public function index(): Factory|View|Application
15
        {
31
        {
16
            $shipping = Shipping::with("shipping_group")->orderBy("rank")->get();
32
            $shipping = Shipping::with("shipping_group")->orderBy("rank")->get();