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; }
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); }
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); }
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); }