Ejemplo n.º 1
0
 public function run()
 {
     GeneralInfo::truncate();
     GeneralInfo::create(array('key' => 'romy', 'section' => 'General', 'title_en' => 'About Romy Rafael', 'title_id' => 'Tentang Romy Rafael', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'management', 'section' => 'General', 'title_en' => 'Management Team', 'title_id' => 'Tim Manajemen', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'contact-us', 'section' => 'General', 'title_en' => 'Contact Us', 'title_id' => 'Hubungi Kami', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'work-entertainer', 'section' => 'Corporate Entertainer', 'title_en' => 'How We Work (Corporate Entertainer)', 'title_id' => 'Cara Kerja Kami (Corporate Entertainer)', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'work-speaker', 'section' => 'Corporate Speaker', 'title_en' => 'How We Work (Corporate Speaker)', 'title_id' => 'Cara Kerja Kami (Corporate Speaker)', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'work-therapist', 'section' => 'Certified Therapist', 'title_en' => 'How We Work (Certified Therapist)', 'title_id' => 'Cara Kerja Kami (Certified Therapist)', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'work-entertainer-summary', 'section' => 'Corporate Entertainer', 'title_en' => 'How We Work (Corporate Entertainer) [Summary]', 'title_id' => 'Cara Kerja Kami (Corporate Entertainer) [Summary]', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'work-speaker-summary', 'section' => 'Corporate Speaker', 'title_en' => 'How We Work (Corporate Speaker) [Summary]', 'title_id' => 'Cara Kerja Kami (Corporate Speaker) [Summary]', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'work-therapist-summary', 'section' => 'Certified Therapist', 'title_en' => 'How We Work (Certified Therapist) [Summary]', 'title_id' => 'Cara Kerja Kami (Certified Therapist) [Summary]', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'affirmation', 'section' => 'General', 'title_en' => 'Positive Affirmation', 'title_id' => 'Afirmasi Positif', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'speaker-training', 'section' => 'Corporate Speaker', 'title_en' => 'Training Program (Corporate Speaker)', 'title_id' => 'Program Training (Corporate Speaker)', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'speaker-training', 'section' => 'Corporate Speaker', 'title_en' => 'Training Program (Certified Therapist)', 'title_id' => 'Program Training (Certified Therapist)', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'therapy-group', 'section' => 'Certified Therapist', 'title_en' => 'Group Therapy Session', 'title_id' => 'Sesi Terapi Grup', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'therapy-personal', 'section' => 'Certified Therapist', 'title_en' => 'Personal Therapy Session', 'title_id' => 'Sesi Terapi Perorangan', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'therapist-association', 'section' => 'Certified Therapist', 'title_en' => 'Our Therapist Association', 'title_id' => 'Asosiasi Terapis Kami', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'customer-entertainer', 'section' => 'Corporate Entertainer', 'title_en' => 'Customer (Corporate Entertainer)', 'title_id' => 'Pelanggan (Corporate Entertainer)', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'customer-speaker', 'section' => 'Corporate Speaker', 'title_en' => 'Customer (Corporate Speaker)', 'title_id' => 'Pelanggan (Corporate Speaker)', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'customer-therapist', 'section' => 'Certified Therapist', 'title_en' => 'Customer (Certified Therapist)', 'title_id' => 'Pelanggan (Certified Therapist)', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'customer-entertainer-summary', 'section' => 'Corporate Entertainer', 'title_en' => 'Customer (Corporate Entertainer) [Summary]', 'title_id' => 'Pelanggan (Corporate Entertainer) [Summary]', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'customer-speaker-summary', 'section' => 'Corporate Speaker', 'title_en' => 'Customer (Corporate Speaker) [Summary]', 'title_id' => 'Pelanggan (Corporate Speaker) [Summary]', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'customer-therapist-summary', 'section' => 'Certified Therapist', 'title_en' => 'Customer (Certified Therapist) [Summary]', 'title_id' => 'Pelanggan (Certified Therapist) [Summary]', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
     GeneralInfo::create(array('key' => 'show', 'section' => 'Corporate Entertainer', 'title_en' => 'Shows', 'title_id' => 'Jenis Show', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')));
 }
Ejemplo n.º 2
0
 public function postSubmit($url_cat)
 {
     $check = $this->checkUrlCategory($url_cat);
     if (!$check) {
         $url_cat = 'general';
     }
     if (Input::get('_action') == 'addProcess') {
         //disabled by default
     } elseif (Input::get('_action') == 'editProcess') {
         if (Input::has('id')) {
             $general = GeneralInfo::find(Input::get('id'));
             if (Input::get('title_en')) {
                 $general->title_en = Input::get('title_en');
             }
             if (Input::get('title_id')) {
                 $general->title_id = Input::get('title_id');
             }
             $general->value_en = Input::get('content_en');
             $general->value_id = Input::get('content_id');
             $general->save();
         }
     }
     return Redirect::route('admin.general', array('url_category' => $url_cat));
 }
Ejemplo n.º 3
0
 public function getAffirmation($lang = 'id')
 {
     $data['title'] = trans('menu.affirmation');
     $content = GeneralInfo::Key('affirmation')->first();
     $data['content'] = $content->value_id;
     if ($lang == 'en') {
         $data['content'] = $content->value_en;
     }
     $data['pageTitle'] = "Afirmasi Positif";
     $data['pageDescription'] = "Afirmasi Positif";
     if ($lang == 'en') {
         $data['pageTitle'] = "Positive Affirmation";
         $data['pageDescription'] = "Positive Affirmation";
     }
     return View::make('pages.free', $data);
 }
Ejemplo n.º 4
0
 public function getTraining($lang = 'id')
 {
     $data['title'] = trans('menu.training');
     $content = GeneralInfo::Key('speaker-training')->first();
     if ($content) {
         $data['content'] = $content->value_id;
         if ($lang == 'en') {
             $data['content'] = $content->value_en;
         }
     }
     $data['pageTitle'] = "Corporate Speaker - Program Training";
     $data['pageDescription'] = "Corporate Speaker - Program Training";
     if ($lang == 'en') {
         $data['pageTitle'] = "Corporate Speaker - Training Program";
         $data['pageDescription'] = "Corporate Speaker - Training Program";
     }
     return View::make('pages.free', $data);
 }
Ejemplo n.º 5
0
 public function getAssociation($lang = 'id')
 {
     $data['title'] = trans('menu.therapist-association');
     $content = GeneralInfo::Key('therapist-association')->first();
     if ($content) {
         $data['content'] = $content->value_id;
         if ($lang == 'en') {
             $data['content'] = $content->value_en;
         }
     }
     $data['pageTitle'] = "Certified Therapist - Asosiasi Terapis Kami";
     $data['pageDescription'] = "Certified Therapist - Asosiasi Terapis Kami";
     if ($lang == 'en') {
         $data['pageTitle'] = "Certified Therapist - Our Therapist Association";
         $data['pageDescription'] = "Certified Therapist - Our Therapist Association";
     }
     return View::make('pages.free', $data);
 }
 public function getShow($lang = 'id')
 {
     $data['title'] = trans('menu.show');
     $content = GeneralInfo::Key('show')->first();
     if ($content) {
         $data['content'] = $content->value_id;
         if ($lang == 'en') {
             $data['content'] = $content->value_en;
         }
     }
     $data['pageTitle'] = "Corporate Entertainer - Jenis Show";
     $data['pageDescription'] = "Corporate Entertainer - Jenis Show";
     if ($lang == 'en') {
         $data['pageTitle'] = "Corporate Entertainer - Shows";
         $data['pageDescription'] = "Corporate Entertainer - Shows";
     }
     return View::make('pages.free', $data);
 }