@extends('layouts.app') @section('title', 'Edit Profile') @section('content')
{{-- ── Top row ── --}}

Edit Profile

Update Your Information

Back to Profile
{{-- ── Main card ── --}}
{{-- Error Messages --}} @if($errors->any())
Please fix the following errors
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT') {{-- ══════════════════════════════════════ SECTION 1 — Basic Information ══════════════════════════════════════ --}}
Basic Information
{{-- Full Name --}}
@error('name')
{{ $message }}
@enderror
{{-- Email --}}
@error('email')
{{ $message }}
@enderror
{{-- /basic grid --}} {{-- ══════════════════════════════════════ SECTION 2 — Student Information (only shown to students) ══════════════════════════════════════ --}} @if($user->role === 'student' && $user->student)
Student Information
{{-- Photo Upload --}}
@if($user->student->photo) Student Photo @else
No
Photo
@endif
Upload a profile photo
JPG, PNG or GIF — max 2MB recommended
@error('photo')
{{ $message }}
@enderror
{{-- Row 1: Roll No · Mobile · Gender --}}
{{-- CITS Number --}}
@error('roll_no')
{{ $message }}
@enderror
{{-- Mobile --}}
@error('mobile')
{{ $message }}
@enderror
{{-- Gender --}}
@error('gender')
{{ $message }}
@enderror
{{-- /row 1 --}} {{-- Row 2: Course · Trade · Department --}}
{{-- Trade --}}
@error('trade')
{{ $message }}
@enderror
{{-- /row 2 --}} {{-- Row 3: Shift · Semester --}}
{{-- Shift --}}
@error('shift')
{{ $message }}
@enderror
{{-- /row 3 --}} {{-- Address (full width) --}}
@error('address')
{{ $message }}
@enderror
@endif {{-- /student section --}}
{{-- ══════════════════════════════════════ SECTION 3 — Change Password ══════════════════════════════════════ --}}
Change Password (Optional)
{{-- Current Password --}}
@error('current_password')
{{ $message }}
@enderror

Required only if changing password

{{-- New Password --}}
@error('password')
{{ $message }}
@enderror

Minimum 8 characters

{{-- /password grid --}} {{-- Confirm Password (half-width) --}}

Must match the new password above

{{-- ── Action Buttons ── --}}
Cancel
{{-- /card-body --}}
{{-- /card --}}
{{-- /wrap --}} @endsection