-
Notifications
You must be signed in to change notification settings - Fork 1
show.blade.php(default)
Tady edited this page Sep 6, 2023
·
2 revisions
<div style="margin: 5px;">
<h1>Posts</h1>
<a href="{{ route('posts.index') }}"
style="text-decoration:none;background-color:#5bc0de;color:white;padding:5px 5px;text-align:center;display:inline-block;border-radius:5px;">
Go Back
</a>
<a href="{{route('posts.edit', $post->id)}}"
style="text-decoration:none;background-color:#0275d8;color:white;padding:5px 5px;text-align:center;display:inline-block;border-radius:5px;">
Edit
</a>
<br>
<div style="display:flex;flex-wrap:wrap;margin-top:0.5rem;">
<label style="flex:0 0 auto;width:16.66666667%;">Id :</label>
<div style="flex:0 0 auto;width:83.33333333%;">
<div style="display:block;width:100%;padding:0.375rem 0.75rem;appearance:none;border:1px solid #dee2e6;border-radius:0.375rem;">{{ $post->id}}</div>
</div>
</div>
<div style="display:flex;flex-wrap:wrap;margin-top:0.5rem;">
<label style="flex:0 0 auto;width:16.66666667%;">Title :</label>
<div style="flex:0 0 auto;width:83.33333333%;">
<div style="display:block;width:100%;padding:0.375rem 0.75rem;appearance:none;border:1px solid #dee2e6;border-radius:0.375rem;">{{ $post->title}}</div>
</div>
</div>
<div style="display:flex;flex-wrap:wrap;margin-top:0.5rem;">
<label style="flex:0 0 auto;width:16.66666667%;">Content :</label>
<div style="flex:0 0 auto;width:83.33333333%;">
<div style="display:block;width:100%;padding:0.375rem 0.75rem;appearance:none;border:1px solid #dee2e6;border-radius:0.375rem;">{{ $post->content}}</div>
</div>
</div>
<div style="display:flex;flex-wrap:wrap;margin-top:0.5rem;">
<label style="flex:0 0 auto;width:16.66666667%;">Created at :</label>
<div style="flex:0 0 auto;width:83.33333333%;">
<div style="display:block;width:100%;padding:0.375rem 0.75rem;appearance:none;border:1px solid #dee2e6;border-radius:0.375rem;">{{ $post->created_at}}</div>
</div>
</div>
<div style="display:flex;flex-wrap:wrap;margin-top:0.5rem;">
<label style="flex:0 0 auto;width:16.66666667%;">Updated at :</label>
<div style="flex:0 0 auto;width:83.33333333%;">
<div style="display:block;width:100%;padding:0.375rem 0.75rem;appearance:none;border:1px solid #dee2e6;border-radius:0.375rem;">{{ $post->updated_at}}</div>
</div>
</div>
<br>
</div>