@extends('layouts.master') @section('content') @php if (!function_exists('shortTitle')) { function shortTitle($title, $maxLength = 50) { if (strlen($title) <= $maxLength) { return $title; } return substr($title, 0, $maxLength) . '...'; } } @endphp Filters Home Filters @if ($message = Session::get('success')) × {{ $message }} @endif All Filters Name Title Search Type Status Action @foreach($filters as $value) {{$value->search_name}} {{ shortTitle($value->title_search, 50) }} @if($value->filter_type==1) RSS @else API @endif status ? 'checked' : '' }}> @endforeach @endsection