/** * Display a listing of branches * * @return Response */ public function index() { $documents = Document::all(); return View::make('documents.index', compact('documents')); }
public function get_documents() { return View::make('tenants.documents')->with('documents', Document::all()); }
public function providerDocuments() { $walker_id = Session::get('walker_id'); $documents = Document::all(); $walker_document = WalkerDocument::where('walker_id', $walker_id)->get(); $walker = Walker::find($walker_id); $status = 0; foreach ($documents as $document) { if (!$document) { $status = -1; } else { $status = 0; } } if ($walker->is_approved) { $status = 1; } return View::make('web.providerDocuments')->with('title', 'My Documents')->with('documents', $documents)->with('walker_document', $walker_document)->with('status', $status); }
<h2>Files Overview</h2> <?php print '<table>'; print '<tr><th>document</th><th>download</th><th>stream</th><th>YouTube</th></tr>'; foreach (Document::all() as $d) { print '<tr>'; print '<td><a href="/a/document/' . $d->id . '">' . htmlspecialchars($d->fullname()) . '</a></td>'; $ff = $d->file_found('download') === false ? '<span class="highlight">NONE</span>' : '<a href="/download' . $d->download_relative_uri() . '">dl</a>'; print '<td>' . $ff . '</td>'; $ff = $d->file_found('stream') === false ? '<span class="highlight">NONE</span>' : '<a href="/stream/' . $d->id . '">see</a>'; print '<td>' . $ff . '</td>'; $ff = $d->youtube() ? '<a href="http://www.youtube.com/watch?v=' . $d->youtube() . '">view</a>' : '<span class="highlight">NONE</span>'; print '<td>' . $ff . '</td>'; print '</tr>'; } print '</table>';
public function walker_documents() { $walker_id = Request::segment(4); $walker = Walker::find($walker_id); $documents = Document::all(); $walker_document = WalkerDocument::where('walker_id', $walker_id)->get(); return View::make('walker_document_list')->with('title', 'Driver Documents')->with('page', 'walkers')->with('walker', $walker)->with('documents', $documents)->with('walker_document', $walker_document); }
public function get_index() { return View::make('documents.index')->with('documents', Document::all()); }