public function run()
 {
     DB::table('consortium_globals')->delete();
     $collection = [['name' => 'Aerospace Disassembly Consortium', 'abr' => 'ADC', 'address' => '5350 Poplar Avenue, Suite 150', 'address2' => 'Memphis, TN 38119', 'phone' => '9016824064', 'fax' => '9012021042', 'corporation_type' => 'Tennessee', 'url' => 'www.eco.local']];
     foreach ($collection as $record) {
         ConsortiumGlobal::create($record);
     }
 }
 public function run()
 {
     DB::table('consortium_globals')->delete();
     $collection = [['address' => '5350 Poplar Avenue, Suite 150', 'address2' => 'Memphis, TN 38119', 'phone' => '9016824064', 'fax' => '9012021042', 'corporation_type' => 'Tennessee']];
     foreach ($collection as $record) {
         ConsortiumGlobal::create($record);
     }
 }
Ejemplo n.º 3
0
 public function contract_gta($id)
 {
     $conType = "General Terms Agreement";
     $topics = Contracttopic::where('contract_type_id', 1)->orderBy('sort_order')->get();
     $project = Project::with('company.addresses')->where('id', $id)->first();
     $company = $project->company;
     $adc = ConsortiumGlobal::where('id', '1')->first();
     //dd($project);
     return view('contracts.contract', compact('conType', 'topics', 'project', 'company', 'adc'));
 }
 public function update($id)
 {
     // save updated
     $record = $this->records->find($id);
     if (!$record) {
         ConsortiumGlobal::create(Input::all());
         return $this->respond($record);
     }
     $record->fill(Input::all())->save();
     return $this->respond($record);
 }
Ejemplo n.º 5
0
 public function fetchGlobals()
 {
     $data = ConsortiumGlobal::all();
     return $this->respond($data);
 }
Ejemplo n.º 6
0
 public function profile($id = null)
 {
     $adc = ConsortiumGlobal::where('id', '1')->first();
     $atas = Ata::where('active', 1)->get();
     $disassemblers = Disassembler::lists('name', 'id');
     $user = Auth::user();
     $types = ProjectType::lists('type', 'id');
     $company = Company::where('id', $user->company_id)->first();
     if ($id) {
         $project = Project::find($id);
     } else {
         $project = Project::create(['creator_id' => $user->id, 'company_id' => $user->company_id, 'directory_path' => $company->company . '/' . date('Y') . '/']);
     }
     return view('projects.profile', compact('adc', 'atas', 'company', 'disassemblers', 'project', 'types', 'user'));
 }