first
This commit is contained in:
36
resources/views/admin/ratemas-upload.blade.php
Normal file
36
resources/views/admin/ratemas-upload.blade.php
Normal file
@@ -0,0 +1,36 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<main class="page">
|
||||
<h1>Upload RateMas</h1>
|
||||
<p class="subtitle">Upload fail CSV atau XML tahunan. Fail asal tidak disimpan selepas data dimasukkan.</p>
|
||||
|
||||
@if (session('status'))
|
||||
<div class="notice">{{ session('status') }}</div>
|
||||
@endif
|
||||
|
||||
@if ($errors->any())
|
||||
<div class="error">{{ $errors->first() }}</div>
|
||||
@endif
|
||||
|
||||
<form method="POST" action="{{ route('admin.ratemas-upload.store') }}" enctype="multipart/form-data">
|
||||
@csrf
|
||||
|
||||
<label for="year">Tahun RateMas</label>
|
||||
<input id="year" type="number" name="year" min="1900" max="2100" value="{{ old('year', date('Y')) }}" required>
|
||||
|
||||
<label for="file">Fail CSV atau XML</label>
|
||||
<input id="file" type="file" name="file" accept=".csv,.txt,.xml,text/csv,text/plain,application/xml,text/xml" required>
|
||||
|
||||
<div class="checkbox-row">
|
||||
<input id="replace_existing" type="checkbox" name="replace_existing" value="1" @checked(old('replace_existing'))>
|
||||
<label for="replace_existing">Ganti data jika table tahun ini sudah wujud</label>
|
||||
</div>
|
||||
|
||||
<div class="actions">
|
||||
<button type="submit">Upload & Import</button>
|
||||
<a class="button secondary" href="{{ route('tables.index') }}">Kembali</a>
|
||||
</div>
|
||||
</form>
|
||||
</main>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user