Ejemplo n.º 1
0
 public function __construct()
 {
     $this->services = Service::orderBy('sort_order')->get();
     $this->email = Option::where('key', 'contact.email')->first()->value;
     $this->phone = Option::where('key', 'contact.phone')->first()->value;
     $this->site_title = Option::where('key', 'site.title')->first()->value;
     $this->site_name = Option::where('key', 'site.name')->first()->value;
 }
Ejemplo n.º 2
0
 public function index()
 {
     $data = array('references' => Reference::orderBy('sort_order')->get(), 'email' => Option::where('key', 'contact.email')->first()->value, 'phone' => Option::where('key', 'contact.phone')->first()->value, 'site_title' => Option::where('key', 'site.title')->first()->value, 'site_name' => Option::where('key', 'site.name')->first()->value);
     return view('references', $data);
 }
Ejemplo n.º 3
0
 public function index()
 {
     $data = array('email' => Option::where('key', 'contact.email')->first()->value, 'phone' => Option::where('key', 'contact.phone')->first()->value, 'site_title' => Option::where('key', 'site.title')->first()->value, 'site_name' => Option::where('key', 'site.name')->first()->value);
     return view('contact', $data);
 }
Ejemplo n.º 4
0
 public function index()
 {
     $services = Service::orderBy('sort_order')->get();
     $data = array('stuzkova' => $services[0], 'svadba' => $services[1], 'udalost' => $services[2], 'email' => Option::where('key', 'contact.email')->first()->value, 'phone' => Option::where('key', 'contact.phone')->first()->value, 'site_title' => Option::where('key', 'site.title')->first()->value, 'site_name' => Option::where('key', 'site.name')->first()->value);
     return view('home', $data);
 }