@extends('front.template.header') @section('content')
Service Details

{{ $service->subtitle }}

image

{!! \Illuminate\Support\Str::words($service->description, 60, '...') !!}

@if (str_word_count($service->description) > 60) @endif
@if(session('success')) @endif @if(session('error')) @endif
@csrf

Basic Details

@foreach ($formfields as $index => $field)
@if ($field['type'] === 'text') @elseif ($field['type'] === 'textarea') @elseif ($field['type'] === 'select') @elseif ($field['type'] === 'radio' && !empty($field['options']))
@foreach (explode(',', $field['options']) as $option)
@endforeach
@elseif ($field['type'] === 'checkbox' && !empty($field['options']))
@foreach (explode(',', $field['options']) as $option)
@endforeach
@elseif ($field['type'] === 'file') @php $allowedTypes = !empty($field['file_types']) ? implode(',', array_map('trim', explode(',', $field['file_types']))) : 'image/*, .pdf, .doc, .docx'; @endphp
  
@endif
@endforeach
@endsection