@extends('layouts.app') @section('title', 'Import new tenancy outlets') @section('heading', 'Import new tenancy outlets') @section('subheading', 'Upload the TAL worksheet or a filled-in template — nothing is saved until you review it') @section('actions') Blank template History @endsection @section('content')
Choose a file
@csrf
.xlsx, .xls or .csv, up to 20 MB.
@error('file')
{{ $message }}
@enderror
Off (the default): a row already in the system is reported as a duplicate and left alone.
On: the existing record's details are overwritten from the spreadsheet row.
How duplicates are prevented

A tenancy is identified by three things together:

  1. Region code
  2. Outlet name and unit / location
  3. Commencement date

Case, spacing and punctuation are ignored, so Lotus's Kepong and LOTUSS KEPONG are treated as the same outlet.

Every row is then reported as one of:

  • New outlet not in the system — will be added
  • Will update already present, refresh requested
  • Duplicate already present — skipped
  • Cannot import no outlet name on the row

Rows are also checked against each other, so the same outlet appearing twice in one file is only imported once. You see the full breakdown and can untick any row before anything is written.

Recent imports See all
@if ($history->isEmpty())
No files have been imported yet.
@else
@foreach ($history as $batch) @endforeach
ReferenceFileSheetStatus ReadNew Dup.Imported ByWhen
{{ $batch->reference }} {{ $batch->original_filename }} {{ $batch->sheet_name }} {{ $batch->status }} {{ $batch->rows_read }} {{ $batch->rows_new }} {{ $batch->rows_duplicate }} {{ $batch->rows_imported }} {{ $batch->uploader?->name ?? '—' }} {{ $batch->created_at->format('d M Y H:i') }} Open
@endif
@endsection