Example #1
0
 /**
  * @return \Illuminate\View\View
  */
 function moodle()
 {
     $id = Route::getCurrentRoute()->parameters();
     $exp = Labs::find($id)[0];
     $exp['lang'] = App::getLocale();
     return view('labs.moodle', compact('exp'));
 }
Example #2
0
<?php

use App\Labs;
$lab = Labs::find($exp);
$troca = $rpijson['dados'];
?>


<header>
    <div >
        <img src='img/report/header.png' style="width: 100%; ">
    </div>


</header>
<img src="img/report/line.png" style="height:3000px; width:14px; margin-top: 138px; position: fixed; left:0; ">
<div class="info">  
    <h3 class="title">Relatório de Prática Experimental</h3>
    @if (Auth::check())
    <div class="infnames">
        <p><b>Nome:</b> {{ Auth::user()->firstname }} {{ Auth::user()->lastname }} </p>
        <p><b>Experimento:</b> {{ $lab->name_pt }}  </p>
        <p><b>Data:</b> <?php 
echo date('d/m/Y');
?>
 </p>
    </div>
    <div class="infnames2">
        <p><b>Instituição:</b> {{ Auth::user()->organization }}</p>
        <p><b>Email:</b> {{ Auth::user()->email }} </p> 
    </div>
Example #3
0
            <th>{{trans('log.browser')}}</th>     
            <th>{{trans('log.mobile')}}</th>     
            <th>{{trans('log.language')}}</th>     
            <th>{{trans('log.country')}}</th>     
            <th>{{trans('log.city')}}</th>     

        </tr>
    </thead>
    <tbody>

        @foreach($logs as $log)
        <tr>

            <?php 
$idExp = $log->lab_id;
$lab = Labs::find($idExp);
if ($log->user_id) {
    $idUser = $log->user_id;
    $user = User::find($idUser);
} else {
    $user['username'] = '******';
}
$locale = 'name_' . App::getlocale();
$name = "";
if ($log->mobile == "1") {
    $name = trans('log.true');
} else {
    $name = trans('log.false');
}
?>