Changeset f457265 for resources/views
- Timestamp:
- 02/24/21 21:58:42 (4 years ago)
- Branches:
- master
- Children:
- ff9da8b
- Parents:
- 0c07a90
- Location:
- resources/views
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/blog/index.blade.php
r0c07a90 rf457265 3 3 @section('blog_content') 4 4 5 <div style="height: 25px;"></div> 5 @if(!session()->has("offer_disabled")) 6 <!-- Modal --> 7 <div class="modal fade company-modal"> 8 <div class="modal-dialog"> 9 <div class="modal-content"> 10 <div class="modal-header"> 11 <h5 class="modal-title">TechnoWeek Offer!</h5> 12 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 13 <span aria-hidden="true">×</span> 14 </button> 15 </div> 16 <div class="modal-body"> 6 17 7 <!-- Main Content Wrapper --> 8 <div class="mainContent pb-5"> 18 <p>We have a good news for you! You can request to open a company page in TechnoBlog just for free in TecnhoWeek!</p> 9 19 10 <div class="container-fluid">20 <form action="{{ route("blog.company.store") }}" method="post" style="font-size: 14px;" class="mt-2"> 11 21 12 <div class="row"> 13 <!-- Welcome Slider --> 14 <div class="col-md-12"> 22 @csrf 15 23 16 <div class="welcomeSlider swiper-container"> 24 <label class="mt-2">Company Name</label> 25 <input type="text" class="form-control form-control-sm" name="name" required autocomplete="off"> 26 <label class="mt-3">Company Website</label> 27 <input type="text" class="form-control form-control-sm" name="website" required autocomplete="off"> 28 <label class="mt-3">E-mail</label> 29 <input type="text" class="form-control form-control-sm" name="email" required autocomplete="off"> 30 <p class="text-muted mt-1" style="font-size: 12px;">The invitation will be sent to this e-mail address.</p> 17 31 18 <div class="swiper-wrapper"> 32 <input type="submit" class="btn btn-primary btn-sm w-100 mt-2"> 33 </form> 19 34 20 @foreach ($latestPosts as $post) 35 </div> 36 </div> 37 </div> 38 </div> 39 @endif 21 40 22 <div class="swiper-slide"> 23 <div class="slider-post-wrapper"> 24 <p class="postCategory" style="background: {{ $post->category->color }};">{{ $post->category->name }}</p><img src="{{ asset("uploads/" . $post->image_link) }}"> 25 <div class="postOverlay"> 26 <p><a href="{{ route("blog.post", ["category" => strtolower($post->category->name), "slug" => $post->slug]) }}">{{ $post->title }} </a></p> 27 <span> 41 <div style="height: 25px;"></div> 42 43 <!-- Main Content Wrapper --> 44 <div class="mainContent pb-5"> 45 46 <div class="container-fluid"> 47 48 <div class="row"> 49 <!-- Welcome Slider --> 50 <div class="col-md-12"> 51 52 <div class="welcomeSlider swiper-container"> 53 54 <div class="swiper-wrapper"> 55 56 @foreach ($latestPosts as $post) 57 58 <div class="swiper-slide"> 59 <div class="slider-post-wrapper"> 60 <p class="postCategory" style="background: {{ $post->category->color }};">{{ $post->category->name }}</p><img src="{{ asset("uploads/" . $post->image_link) }}"> 61 <div class="postOverlay"> 62 <p><a href="{{ route("blog.post", ["category" => strtolower($post->category->name), "slug" => $post->slug]) }}">{{ $post->title }} </a></p> 63 <span> 28 64 <i class="fa fa-clock-o" aria-hidden="true"></i> {{ $post->ago() }} 29 65 … … 32 68 <i class="fa fa-comment-o" aria-hidden="true"></i> {{ $post->comment->count() }} comments 33 69 </span> 34 35 36 70 </div> 71 </div> 72 </div> 37 73 38 74 @endforeach 39 75 40 76 </div> 41 77 42 43 44 78 <div class="swiper-pagination"></div> 79 <div class="swiper-button-prev"></div> 80 <div class="swiper-button-next"></div> 45 81 46 82 </div> 47 83 48 84 </div> 49 85 50 51 86 <!-- Videos --> 87 @foreach ($blogCategories as $category) 52 88 53 54 55 56 57 58 59 60 89 <style> 90 .default_sectionTitle_{{ strtolower($category->name) }}:before, 91 .default_sectionTitle_{{ strtolower($category->name) }} span, 92 .default_sectionTitle_{{ strtolower($category->name) }} a { 93 background: {{ $category->color }}; 94 color: {{ $category->color }}; 95 } 96 </style> 61 97 62 63 64 65 98 <header class="default_sectionTitle default_sectionTitle_{{ strtolower($category->name) }}"> 99 <span>{{ $category->name }}</span> 100 <a class="elemWithTooltip" data-tooltip-info="right-Explore More" href="{{ route("blog.category", ["category" => strtolower($category->name)]) }}">More</a> 101 </header> 66 102 67 103 @foreach ($posts as $post) 68 104 69 105 @if($post->category->name == $category->name) 70 106 71 72 73 74 75 76 77 78 79 80 81 82 83 84 107 <div class="col-md-4 post-item"> 108 <div class="card"> 109 <div class="card-img-top-wrapper"> 110 <img class="card-img-top" src="{{ asset("uploads/" . $post->image_link) }}" alt="Card image cap"> 111 </div> 112 <div class="card-body"> 113 <h5 class="card-title"><a href="{{ route("blog.post", ["category" => strtolower($post->category->name), "slug" => $post->slug]) }}" class="blogSectionCardLink">{{ $post->title }}</a></h5> 114 <p class="card-text">{!! str_limit($post->content, 90) !!}</p> 115 </div> 116 <div class="card-footer"> 117 <small class="text-muted">{{ $post->ago() }}</small> 118 </div> 119 </div> 120 </div> 85 121 86 122 @endif 87 123 88 124 @endforeach 89 125 90 126 @endforeach 91 127 92 128 </div> 93 129 94 130 </div> 95 131 96 132 </div> 97 133 98 134 @endsection -
resources/views/fragments/dashboard/nav.blade.php
r0c07a90 rf457265 1 1 <div class="header py-4"> 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 <div class="container"> 3 <div class="d-flex"> 4 <a class="header-brand text-primary" href="#">TechnoBlog</a> 5 <div class="d-flex order-lg-2 ml-auto"> 6 <div class="dropdown dropdown-notifications-wrapper d-none d-md-flex"> 7 <a class="nav-link dropdown-notifications-unread icon" data-toggle="dropdown"> 8 <i class="fe fe-bell"></i> 9 <span class="nav-unread"></span> 10 </a> 11 <div class="dropdown-menu dropdown-notifications dropdown-menu-right dropdown-menu-arrow"> 12 <p class='text-center unreadNotificationsInfo'>No unread notifications</p> 13 <div class="dropdown-divider"></div> 14 <a href="{{ route("dashboard.notifications.index") }}" class="dropdown-item text-center text-muted-dark">See all</a> 15 </div> 16 </div> 17 <div class="dropdown"> 18 <a href="#" class="nav-link pr-0 leading-none" data-toggle="dropdown"> 19 19 20 21 22 23 24 20 @if(!empty(auth()->user()->userProfile->profile_photo_link)) 21 <span class="avatar" style="background-image: url(/uploads/users/{{ auth()->user()->userProfile->profile_photo_link }})"></span> 22 @else 23 <span class="avatar">{{ strtoupper(auth()->user()->name[0]) . strtoupper(auth()->user()->surname[0]) }}</span> 24 @endif 25 25 26 26 <span class="ml-2 d-none d-lg-block"> 27 27 <span class="text-default">{{ auth()->user()->getFullName() }}</span> 28 28 <small class="text-muted d-block mt-1">{{ ucfirst(auth()->user()->role->name) }}</small> 29 29 </span> 30 31 32 33 34 35 36 37 38 39 40 41 30 </a> 31 <div class="dropdown-menu dropdown-menu-right dropdown-menu-arrow"> 32 <a class="dropdown-item" href="{{ route("blog.user-profile", ["profileLink" => auth()->user()->userProfile->profile_link]) }}" target="_blank"> 33 <i class="dropdown-icon fe fe-user"></i> Public Profile 34 </a> 35 <a class="dropdown-item" href="{{ route("dashboard.settings.index") }}"> 36 <i class="dropdown-icon fe fe-settings"></i> Settings 37 </a> 38 <div class="dropdown-divider"></div> 39 <a class="dropdown-item" 40 href="javascript:void(0)" 41 onclick=" 42 42 event.preventDefault(); 43 43 document.getElementById('logout-form').submit(); 44 44 "> 45 46 47 48 49 50 51 52 53 54 55 56 57 45 <i class="dropdown-icon fe fe-log-out"></i> Logout 46 </a> 47 <form id="logout-form" action="{{ route("auth.logout") }}" method="post"> 48 @csrf 49 </form> 50 </div> 51 </div> 52 </div> 53 <a href="#" class="header-toggler d-lg-none ml-3 ml-lg-0" data-toggle="collapse" data-target="#headerMenuCollapse"> 54 <span class="header-toggler-icon"></span> 55 </a> 56 </div> 57 </div> 58 58 </div> 59 59 <div class="header collapse d-lg-flex p-0" id="headerMenuCollapse"> 60 61 62 63 60 <div class="container"> 61 <div class="row align-items-center"> 62 <div class="col-lg order-lg-first"> 63 <ul class="nav nav-tabs border-0 flex-column flex-lg-row"> 64 64 65 66 67 68 69 65 <li class="nav-item"> 66 <a href="{{ route("dashboard.index") }}" class="nav-link {{ request()->is('dashboard') ? 'active' : '' }}"> 67 <i class="fe fe-home"></i> Home 68 </a> 69 </li> 70 70 71 72 73 74 75 76 77 71 @if(auth()->user()->hasPermission("access_all_users")) 72 <li class="nav-item"> 73 <a href="{{ route("dashboard.users.index") }}" class="nav-link {{ request()->is(['dashboard/users', 'dashboard/users/*']) ? 'active' : '' }}"> 74 <i class="fe fe-users"></i> Users 75 </a> 76 </li> 77 @endif 78 78 79 80 81 82 83 79 <li class="nav-item"> 80 <a href="{{ route("dashboard.posts.index") }}" class="nav-link {{ request()->is(['dashboard/posts', 'dashboard/posts/*']) ? 'active' : '' }}"> 81 <i class="fe fe-database"></i> Posts 82 </a> 83 </li> 84 84 85 86 87 88 89 90 91 85 @if(auth()->user()->hasPermission("access_all_categories")) 86 <li class="nav-item"> 87 <a href="{{ route("dashboard.categories.index") }}" class="nav-link {{ request()->is(['dashboard/categories', 'dashboard/categories/*']) ? 'active' : '' }}"> 88 <i class="fe fe-layers"></i> Categories 89 </a> 90 </li> 91 @endif 92 92 93 94 95 96 97 93 <li class="nav-item"> 94 <a href="{{ route("dashboard.comments.index") }}" class="nav-link {{ request()->is(['dashboard/comments', 'dashboard/comments/*']) ? 'active' : '' }}"> 95 <i class="fe fe-message-circle"></i> Comments 96 </a> 97 </li> 98 98 99 100 101 102 103 99 <li class="nav-item"> 100 <a href="{{ route("dashboard.tags.index") }}" class="nav-link {{ request()->is(['dashboard/tags', 'dashboard/tags/*']) ? 'active' : '' }}"> 101 <i class="fe fe-tag"></i> Tags 102 </a> 103 </li> 104 104 105 </ul> 106 </div> 107 </div> 108 </div> 105 <li class="nav-item"> 106 <a href="{{ route("dashboard.companies.index") }}" class="nav-link {{ request()->is(['dashboard/companies', 'dashboard/companies/*']) ? 'active' : '' }}"> 107 <i class="fe fe-briefcase"></i> Companies 108 </a> 109 </li> 110 111 </ul> 112 </div> 113 </div> 114 </div> 109 115 </div>
Note:
See TracChangeset
for help on using the changeset viewer.