Compare commits
No commits in common. "bbc7ae7e8392e8217c9c08eef7592be08f7bceb5" and "41cd07db41606c4d25853bd0072d106e57f976ec" have entirely different histories.
bbc7ae7e83
...
41cd07db41
@ -79,11 +79,11 @@ class MypageController extends Controller
|
|||||||
->get();
|
->get();
|
||||||
|
|
||||||
// お知らせ情報を取得
|
// お知らせ情報を取得
|
||||||
$information = DB::table('user_information_history')
|
$informations= DB::table('user_information_history')
|
||||||
->where('user_id', $user_id)
|
->where('user_id', $user_id)
|
||||||
->orderBy('user_information_history_id', 'desc')
|
->orderBy('user_information_history_id', 'desc')
|
||||||
->select('entry_date', 'user_information_history')
|
->limit(3)
|
||||||
->first();
|
->get();
|
||||||
|
|
||||||
\Log::info('マイページにアクセス', [
|
\Log::info('マイページにアクセス', [
|
||||||
'user_id' => $user_id,
|
'user_id' => $user_id,
|
||||||
@ -94,7 +94,7 @@ class MypageController extends Controller
|
|||||||
'user_name' => $user->user_name, // ユーザー名(ヘッダー用)
|
'user_name' => $user->user_name, // ユーザー名(ヘッダー用)
|
||||||
'contracts' => $contracts,
|
'contracts' => $contracts,
|
||||||
'seals' => $seals,
|
'seals' => $seals,
|
||||||
'information' => $information
|
'informations' => $informations
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -243,14 +243,9 @@
|
|||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
<ul class="info-slider_1-1">
|
<ul class="info-slider_1-1">
|
||||||
@if($information)
|
@foreach($informations as $information)
|
||||||
<li>
|
<li><span class="small" style="margin-right: 1em;">{{ $information->entry_date }}</span>{{ $information->user_information_history }}</li>
|
||||||
<span class="small" style="margin-right: 1em;">{{ $information->entry_date }}</span>
|
@endforeach
|
||||||
{{ $information->user_information_history }}
|
|
||||||
</li>
|
|
||||||
@else
|
|
||||||
<li class="text-center">お知らせはありません。</li>
|
|
||||||
@endif
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user