@extends('layouts.app') @section('title', 'Edit Profile - Tiqkets') @section('page-title', 'Edit Profile') @section('header-action') Cancel @endsection @section('content')
@if (session('success')) @endif
@csrf
{{-- Profile Picture Section - Advanced Design --}}
Profile Picture
{{-- Avatar Preview Column --}}
Profile Picture
{{-- Upload Controls Column --}}
{{-- Custom File Input Button --}}
{{-- --}}
{{-- Hidden File Input --}}
{{-- File Info Display --}} {{-- Current File Info --}} @if ($user->avatar)
Current file: {{ $user->avatar }}
@endif {{-- Error Display --}} @error('avatar')
{{ $message }}
@enderror {{-- Guidelines --}}
Requirements:
  • Allowed formats: JPG, PNG, WEBP
  • Maximum file size: 2 MB
  • Recommended: Square image (1:1 ratio)
{{-- Personal Information Section --}}
Personal Information
{{-- Name --}}
@error('name') {{ $message }} @enderror
{{-- Phone --}}
@error('phone') {{ $message }} @enderror
{{-- Email (readonly) --}}
Email address cannot be changed
{{-- Branch Information – only for role 3 --}} @if (auth()->user()->role == 3 || auth()->user()->role == 8) {{--
--}}
Tenant Information
@error('contact_person_phone') {{ $message }} @enderror
@endif
@endsection @push('scripts') @endpush