@extends('frontend.inner') @php $sections = \App\Models\faculty::profileSections(); $firstSectionField = array_key_first($sections); @endphp @section('page_title', $staffInfo->name) @push('styles') @endpush @section('inner') @if($staffInfo->photo) {{ $staffInfo->name }} @endif
@foreach ($sections as $field => $label) @endforeach
@if($staffInfo->staff_id) @endif @if($staffInfo->qualification) @endif @if($staffInfo->experience) @endif @if($staffInfo->mobile) @endif @if($staffInfo->biodata) @endif
Name : {{ $staffInfo->name }}
Designation : {{ $staffInfo->designation }}
Staff ID : {{ $staffInfo->staff_id }}
Qualification : {{ $staffInfo->qualification }}
Experience : {{ $staffInfo->experience }}
Contact No : {{ $staffInfo->mobile }}
Bio Data : Download
@foreach ($sections as $field => $label)
{{ $label }}
@if(!empty($staffInfo->$field)) {!! $staffInfo->$field !!} @else

No information available.

@endif
@endforeach @endsection @push('scripts') @endpush