pick creneau with magasin

This commit is contained in:
Olivier Legat 2021-04-22 12:25:38 +02:00
parent 7c62ab5c29
commit 2b6b9bcaae
2 changed files with 4 additions and 2 deletions

View file

@ -256,7 +256,9 @@ class OrdersController extends Controller
}
$order = Order::where('reference', '=', $reference)->firstOrFail();
return view('sales.pick-slot', compact('activestep', 'availCreneaux', 'order'));
$magasin = Magasin::first();
return view('sales.pick-slot', compact('activestep', 'availCreneaux', 'order', 'magasin'));
}
/**

View file

@ -19,7 +19,7 @@ class MagasinsSeeder extends Seeder
$shop->address = 'ZI Le Moulin du Lay';
$shop->postcode = '56660';
$shop->city = 'Saint-Jean-Brévelay';
$shop->gmaps_embed_href = 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1338.6273890542313!2d-2.72895304171439!3d47.85402879462169!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x481027805e253b01%3A0x9238845cc1430920!2sCELVIA%20Centre%20d'Elaboration%20des%20Viandes!5e0!3m2!1sfr!2sfr!4v1619018555708!5m2!1sfr!2sfr';
$shop->gmaps_embed_href = "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1338.6273890542313!2d-2.72895304171439!3d47.85402879462169!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x481027805e253b01%3A0x9238845cc1430920!2sCELVIA%20Centre%20d'Elaboration%20des%20Viandes!5e0!3m2!1sfr!2sfr!4v1619018555708!5m2!1sfr!2sfr";
$shop->gmaps_link_href = 'https://goo.gl/maps/CPWELAXDLHAbUsgeA';
$shop->save();
}