@extends('admin.layouts.app') @section('page-title', 'Add Container') @section('content')
{{-- TOP GRADIENT HEADER --}}

Create New Container

Add container details and upload Kent loading list Excel file.
Back to Containers
{{-- MAIN CARD --}}
Add Container
{{-- SUCCESS MESSAGE --}} @if (session('success'))
{{ session('success') }}
@endif {{-- VALIDATION ERRORS --}} @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- UNMATCHED ROWS TABLE --}} @if (session('unmatched_rows'))
Mark number not matched: @php $unmatchedRows = session('unmatched_rows'); $headings = []; if (!empty($unmatchedRows)) { $headings = array_keys($unmatchedRows[0]['data'] ?? []); // इथे Excel मधला 'MARK' कॉलम hide करतो, कारण आधीच Mark No वेगळा column आहे $headings = array_filter($headings, function ($h) { return strtoupper(trim($h)) !== 'MARK'; }); } @endphp @if(!empty($unmatchedRows))
@foreach($headings as $head) @endforeach @foreach($unmatchedRows as $row) @foreach($headings as $head) @endforeach @endforeach
Excel Row Mark No{{ $head }}
{{ $row['excel_row'] }} {{ $row['mark_no'] }}{{ $row['data'][$head] ?? '' }}
@endif
@endif {{-- FORM: unmatched_rows असल्यावर form लपवायचा असेल तर खालील condition ठेवा --}} @if (!session('unmatched_rows'))
@csrf
{{-- Container Name --}}
{{-- Container Number --}}
{{-- Container Date --}}
{{-- Excel File --}}
Upload Kent loading list Excel file (.xls / .xlsx).
Cancel
@endif
@endsection