{{-- ? To set: * required: title as string html * or title_h2 as string html for big table option: route as string to view route for show animated button, label_pill as string label_pill_color as string color default = secondary label_pill_attr as string attributes btn_text as string , btn_fa_icon as string without "fa-", sticky as boolean to fix at the top btn_title as string btn_css as string css as string for customize field css class as string for customize field class collapse_id as string to eneble collapse modal_id as string to eneble modal btn static_btn as string to eneble btn static and text of btn in html rating as array to eneble rating stars a_style as string style attribute of a tag ? To implement in Blade: * @includeIf('layouts.components.card_header', [ 'title' => 'Example head' ]) collapse need:
--}} @if ( (!empty($title) || !empty($title_h2)) && (empty($version) || $version == 1) ) @if (!empty($collapse_id) && !isset($route) && !isset($modal_id)) @endif
@if (!empty($collapse_id) && (isset($route) || isset($modal_id))) @endif @if (!empty($collapse_id)) @endif {!! !empty($title) ? $title : '' !!} {!! !empty($title_h2) ? "

$title_h2

" : '' !!} @if(!empty($label_pill_bracke))
@endif {!! !empty($label_pill) ? "$label_pill" : '' !!} @if(!empty($label_pills) && is_array($label_pills)) @foreach($label_pills as $label_pill) {{ !empty($label_pill['title']) ? $label_pill['title'] : $label_pill ?? "NO TITLE" }} @endforeach @endif @if (!empty($collapse_id) && (isset($route) || isset($modal_id)))
@endif @if ( (!isset($static_btn) && isset($route) && Route::has($route)) || isset($modal_id) && !isset($static_btn)) @includeIf('layouts.components.btn_route_animated') @endif @if (isset($route) && Route::has($route) && !empty($static_btn))
{!! $static_btn !!}
@elseif ( !empty($rating['input_id']) )
@includeIf('layouts.components.rating', $rating)
@endif
@if (!empty($collapse_id) && !isset($route) && !isset($modal_id)) @endif @elseif((!empty($title) || !empty($title_h2)) && $version == 2 ) @endif