{% extends 'chef/dashboard.html.twig' %} {% block title %}Settings{% endblock %} {% block dashboard_content %}

Chef Profile

{% for message in app.flashes('success') %}
{{ message }}
{% endfor %} {% if not profile.bio or not profile.certification or not profile.image or not profile.licence %}
Please fill your information.
{% endif %} {% if profile.bio and profile.certification and profile.image and profile.licence %} {% if profile.approved == 1 %}
✅ Your profile is approved.
{% else %}
⏳ Your profile is under review. Please wait for admin approval.
{% endif %} {% endif %} {% if profile.image %}

Profile Image
{% endif %} {% if profile.licence %}

View Licence
{% endif %} {{ form_start(form, { attr: { novalidate: 'novalidate', enctype: 'multipart/form-data' } }) }} {% if form.vars.submitted and not form.vars.valid %}
Please correct the errors below.
{% endif %}
{{ form_label(form.bio) }} {{ form_widget(form.bio, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.bio) }}
{{ form_label(form.certification) }} {{ form_widget(form.certification, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.certification) }}
{{ form_label(form.image) }} {{ form_widget(form.image, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.image) }}
{{ form_label(form.licence) }} {{ form_widget(form.licence, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.licence) }}
{{ form_end(form) }}
{% endblock %}