@extends('front.layouts.master-auth') @section('content') @lang('Favourites') @if(count($projects) > 0) @foreach($projects as $project) @if($project->is_featured) @lang('front.featured_project') @endif {{$project->title}} {{$project->category?->name}} {!! format_text($project->description) !!} {{localized_friendly_time($project->created_at)}} {{$project->getCurrentStatus()}} ٧ عروض @lang('front.starts_from') {{$project->price ?? $project->price_from}} {{$project->user?->country?->name}} @endforeach {{ $projects->withQueryString()->links('front.pagination') }} @endif @lang('Search') @lang('Keywords') @lang('Project Owner') @if(count($owners) > 0) @lang('Select') @foreach($owners as $owner) get('owner_id') == $owner->id) selected @endif>{{$owner->name}} @endforeach @endif @lang('Category') @php $checked = false; $selected_cat = []; if (request()->get('category_id')) { $category_ids = request()->get('category_id'); if(strpos($category_ids,',') !== false) { $selected_cat=explode(',', $category_ids); }else { $selected_cat=[$category_ids]; } } @endphp @foreach($categories as $category) @php if(count($selected_cat) > 0) { if(in_array($category->id, $selected_cat)) { $checked = true; } } @endphp {{$category->name}} @endforeach @endsection @section('js-body') @endsection