@extends('layout.app') @section('content')
📢 Want More Customers? Promote Your Business Here — Advertise Now & Reach Thousands! 🚀      📢 $50/for 2 weeks; $75/for month. There is a 20% discount for small businesses <20 employees. 🚀     
@if (Auth::check() && \Illuminate\Support\Facades\Auth::user()->hasRole('user')) Post a Job @else Post a Job @endif

Search

@if(!$highlightPost && $otherPosts->isEmpty())

No Jobs Found!

@else @if($highlightPost)
img

{{ $highlightPost->user->name ?? '' }}

{{ $highlightPost->created_at->diffForHumans() ?? '' }}

{{ $highlightPost->title ?? '' }}

{{ ucfirst(str_replace('_', ' ', $highlightPost->job_type)) }} ${{ $highlightPost->fees }} @if($highlightPost->job_type === 'hourly')/ hr @endif
@php $words = explode(' ', $highlightPost->description); $shortDescription = implode(' ', array_slice($words, 0, 50)); $fullDescription = implode(' ', array_slice($words, 50)); $tags = explode(',', $highlightPost->tags); @endphp

{{ $shortDescription }} @if(count($words) > 50) {{ $fullDescription }} View More @endif

@if($highlightPost->user_id !== \Illuminate\Support\Facades\Auth::id()) @endif
@endif @foreach($otherPosts as $post)
img

{{ $post->user->name }}

{{ $post->created_at->diffForHumans() }}

{{ $post->title }}

{{ ucfirst(str_replace('_', ' ', $post->job_type)) }} ${{ $post->fees }} @if($post->job_type === 'hourly')/ hr @endif
@php $words = explode(' ', $post->description); $shortDescription = implode(' ', array_slice($words, 0, 50)); $fullDescription = implode(' ', array_slice($words, 50)); $tags = explode(',', $post->tags); @endphp

{{ $shortDescription }} @if(count($words) > 50) {{ $fullDescription }} View More @endif

@if($post->user_id !== \Illuminate\Support\Facades\Auth::id()) @endif
@endforeach @endif
@include('components.view-advertisement')
{{-- --}} {{-- --}} @endsection @push('script') @endpush