@extends('vendors.layout') {{-- this style will be applied when the direction of language is right-to-left --}} @includeIf('backend.partials.rtl_style') @section('content')
{{ __('Projects') }}
@includeIf('vendors.partials.languages')
{{ __('Add Project') }}
@if (count($projects) == 0)

{{ __('NO PROJECT ARE FOUND!') }}

@else
@foreach ($projects as $project) @endforeach
{{ __('Title') }} {{ __('Post by') }} {{ __('Type') }} {{ __('Approval Status') }} {{ __('Status') }} {{ __('Actions') }}
@php $project_content = $project->getContent($language->id); if (is_null($project_content)) { $project_content = $project->projectContents()->first(); } @endphp @if (!empty($project_content)) {{ strlen(@$project_content->title) > 100 ? mb_substr(@$project_content->title, 0, 100, 'utf-8') . '...' : @$project_content->title }} @endif @if (!is_null($project->agent_id) && $project->agent_id != 0) {{ @$project->agent->username }} @else {{ __('Vendor') }} @endif {{ __('Manage') }} @if ($project->approve_status == 1) {{ __('Approved') }} @elseif($project->approve_status == 0) {{ __('Pending') }} @else {{ __('Rejected') }} @endif
@csrf
@endif
@endsection