<?php
/**
 * VENDOR APPROVAL EMAIL TEMPLATE
 * File: templates/email/vendor-approved.php
 * Vendor account approval notification
 * 
 * Available variables: $business_name, $email, $app_name, $app_url
 */

// Email content
ob_start();
?>

<p>Great news! Your vendor account has been approved and is now active.</p>

<div class="alert alert-success">
    <strong>✓ Account Approved!</strong> Your vendor account is now fully activated and you can start listing items for rent.
</div>

<div class="order-summary">
    <h3>What You Can Do Now</h3>
    <p>As an approved vendor, you now have access to:</p>
    <ul>
        <li><strong>List Your Items:</strong> Upload and manage your rental inventory</li>
        <li><strong>Set Your Prices:</strong> Control your rates and availability</li>
        <li><strong>Receive Bookings:</strong> Get orders from customers</li>
        <li><strong>Manage Earnings:</strong> Track payments and withdrawals</li>
        <li><strong>Analytics Dashboard:</strong> Monitor your performance</li>
    </ul>
</div>

<div class="order-summary">
    <h3>Getting Started - Quick Guide</h3>
    <ol>
        <li><strong>Add Your First Item:</strong> Go to your vendor dashboard and click "Add New Item"</li>
        <li><strong>Upload Quality Photos:</strong> Clear, high-resolution images attract more customers</li>
        <li><strong>Write Detailed Descriptions:</strong> Include all important details and specifications</li>
        <li><strong>Set Competitive Pricing:</strong> Research similar items to price competitively</li>
        <li><strong>Define Availability:</strong> Set your rental calendar and booking rules</li>
    </ol>
</div>

<div class="alert alert-info">
    <strong>Pro Tips for Success:</strong>
    <ul style="margin: 10px 0 0 20px;">
        <li>Respond to customer inquiries within 24 hours</li>
        <li>Keep your item availability calendar up to date</li>
        <li>Provide excellent customer service to earn 5-star reviews</li>
        <li>Offer flexible pickup/delivery options when possible</li>
        <li>Maintain your items in excellent condition</li>
    </ul>
</div>

<p>Our vendor support team is here to help you succeed. If you have any questions or need assistance, don't hesitate to reach out!</p>

<?php
$content = ob_get_clean();

// Prepare email data
$email_data = [
    'title' => 'Vendor Account Approved!',
    'greeting' => "Hello " . $business_name . "!",
    'content' => $content,
    'action_url' => $app_url . '/vendor/item-form.php',
    'action_text' => 'Add Your First Item',
    'secondary_action_url' => $app_url . '/vendor/index.php',
    'secondary_action_text' => 'Go to Dashboard',
    'footer_note' => 'Welcome to the ' . $app_name . ' vendor community!',
    'signature' => "Best regards,<br>The " . $app_name . " Team<br>vendors@moyalony.com"
];

// Include layout
include 'layout.php';
?>