@extends('chat.layout') @section('title', "Edit Business Card") @section('page-name', "Edit Business Card") @section('page-detail', "Update your professional digital business card") @section('body')
@if(session('success')) @endif @if($errors->any()) @endif
@csrf @method('PUT')
Choose Your Template
@foreach($templates as $template)
template_id == $template['id'] ? 'checked' : '' }} style="display: none;"> Preview {{ $loop->index + 1 }}
{{ $template['name'] }}
{{ $template['description'] }}
@endforeach
Basic Information
@error('name')
{{ $message }}
@enderror
@error('title')
{{ $message }}
@enderror
@error('company_name')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('website')
{{ $message }}
@enderror
@error('location')
{{ $message }}
@enderror
Maximum 500 characters @error('bio')
{{ $message }}
@enderror
Photos & Images
JPG, PNG. Max size: 2MB @if($businessCard->profile_photo)
Current profile photo Current photo (leave empty to keep this photo)
@endif @error('profile_photo')
{{ $message }}
@enderror
JPG, PNG. Max size: 2MB @if($businessCard->company_logo)
Current company logo Current logo (leave empty to keep this logo)
@endif @error('company_logo')
{{ $message }}
@enderror
Social Media & Contact
@error('whatsapp')
{{ $message }}
@enderror
@error('linkedin')
{{ $message }}
@enderror
@error('facebook')
{{ $message }}
@enderror
@error('instagram')
{{ $message }}
@enderror
@error('twitter')
{{ $message }}
@enderror
Customization
@php // Handle custom_colors whether it's already an array or JSON string $customColors = is_array($businessCard->custom_colors) ? $businessCard->custom_colors : ($businessCard->custom_colors ? json_decode($businessCard->custom_colors, true) : null); $primaryColor = old('primary_color', $customColors['primary'] ?? '#007bff'); @endphp
Card Settings
is_active) ? 'checked' : '' }}> Inactive cards cannot be viewed publicly
is_public) ? 'checked' : '' }}> Public cards can be viewed by anyone with the link
Additional Information
@error('additional_notes')
{{ $message }}
@enderror
Back to Preview
@if($businessCard->is_public && $businessCard->is_active && isset($businessCard->unique_slug)) Preview Public View @endif
@endsection @section('custom-scripts') @endsection