@extends('front.layout.app') @section('content') @if(isset($department)) {{ $department->department_name }} @if(isset($proByCat)) @if(count($proByCat) > 0) @foreach($proByCat as $project) {{ $project->department->department_name }} {{ \Illuminate\Support\Str::limit($project->title, 45, '...') }} {{ $project->procurement->name }} Starting at: ${{ $project->budget }} @endforeach @if(count($proByCat) > 6) View All @endif @else No Projects in this category @endif @elseif(isset($procurements)) @if(count($procurements) > 0) @foreach($procurements as $procurement) {{ $procurement->name }} {{ \Illuminate\Support\Str::limit($procurement->desc, 65, '...') }} @endforeach @else No Services in this category @endif @elseif(isset($orgByCat)) @if(count($orgByCat) > 0) @foreach($orgByCat as $org) {{ $org->department->department_name }} {{ \Illuminate\Support\Str::limit($org->service_description, 45, '...') }} {{ $org->procurement->name }} @endforeach @if(count($orgByCat) > 6) View All @endif @else No Services in this category @endif @endif @endif @endsection
{{ \Illuminate\Support\Str::limit($project->title, 45, '...') }}
{{ \Illuminate\Support\Str::limit($procurement->desc, 65, '...') }}
{{ \Illuminate\Support\Str::limit($org->service_description, 45, '...') }}