Skip to content

Commit

Permalink
Update add-post.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
SumaiyaTarannumNoor committed May 30, 2023
1 parent 9c31d9e commit 5e30c72
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions resources/views/add-post.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class = "col-md-6 offset-md-3">
<div class = "card">
<div class= "card-header" style= "background-color:rgba(2,3,10,0.4)">
Add Post <a href = "/posts" class="btn btn-success">Show my posts</a>
Add Product <a href = "/posts" class="btn btn-success">Show my Products</a>
</div>
<div class = "card-body" style= "background-color:red">
@if(Session::has('post_created'))
Expand All @@ -22,16 +22,16 @@
<form method = "POST" action = "{{route('post.create')}}">
@csrf
<div class = "form-group" style= "background-color:magenta">
<label for = "title">Post Title</label>
<input type = "text" name = "title" class= "form-control" placeholder="Enter Post Title"/>
<label for = "title">Product Title</label>
<input type = "text" name = "title" class= "form-control" placeholder="Enter Product Title"/>
</div>

<div class="form-group" style= "background-color:red">
<label for = "body">Post Description</label>
<textarea name = "body" class= "form-control" rows= "3" tyle= "background-color:pink" placeholder="Enter Post Details"></textarea>
<label for = "body">Product Description</label>
<textarea name = "body" class= "form-control" rows= "3" tyle= "background-color:pink" placeholder="Enter Product Details"></textarea>
</div>

<button type="submit" class="btn btn-success">Add Post</button>
<button type="submit" class="btn btn-success">Add Product</button>
</form>
</div>
</div>
Expand All @@ -40,4 +40,4 @@
</div>
</section>
</body>
@endsection
@endsection

0 comments on commit 5e30c72

Please sign in to comment.