@extends('layouts.app') @section('title', 'Import Clients from Excel') @section('content')

Import Clients from Excel

Upload an Excel file to bulk import multiple clients at once

@if($errors->any()) @endif @if(session('success')) @endif @if(session('warning')) @endif
Upload File
@csrf @if(auth()->user()->isSuperAdmin())
@error('company_id')
{{ $message }}
@enderror
@endif
Supported formats: .xlsx, .xls, .csv @error('excel_file')
{{ $message }}
@enderror
This will be used for all imported clients. You can change individual tiers after import. @error('tier_group_id')
{{ $message }}
@enderror
Back to Clients
Instructions & Template
Required Columns:
  • name - Client full name *
Optional Columns:
  • account_number - Account number suffix (auto-generated with company ID if empty. Final format: companyID-suffix)
  • email - Email address
  • phone - Phone number
  • address - Street address
  • barangay - Barangay name
  • city - City/Municipality
  • province - Province name
  • postal_code - Postal code
  • meter_number - Meter identification number
  • meter_start_reading - Initial meter reading
Example Format:
name account_number email phone city meter_number
Juan Dela Cruz 001 Manila M001
Maria Santos maria@example.com 09281234567 Quezon City M002
Note: Make sure your Excel file has headers in the first row. Email and phone are not required. Account numbers will be auto-generated if not provided. If you provide account_number, it will be prefixed with company ID (e.g., Company 1 + "001" = "1-001").
Download Template
@endsection