add file to lan paid off letter
This commit is contained in:
@@ -7,6 +7,7 @@ use App\Modules\PhoneNumberVerification\Rules\PhoneNumberVerificationRule;
|
||||
use App\Modules\Region\Repositories\RegionRepository;
|
||||
use App\Modules\TurkmenPassport\Repositories\TurkmenPassportRepository;
|
||||
use Filament\Forms\Components\DatePicker;
|
||||
use Filament\Forms\Components\FileUpload;
|
||||
use Filament\Forms\Components\Hidden;
|
||||
use Filament\Forms\Components\RichEditor;
|
||||
use Filament\Forms\Components\Select;
|
||||
@@ -160,6 +161,12 @@ class LoanPaidOffLetterForm
|
||||
->required()
|
||||
->maxLength(255)
|
||||
->columnSpan(6),
|
||||
|
||||
FileUpload::make('loan_file')
|
||||
->label(__('Loan paid off letter file'))
|
||||
->columnSpan(2)
|
||||
->maxSize(4096)
|
||||
->columnSpan(2),
|
||||
]),
|
||||
|
||||
]);
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('loan_paid_off_letters', function (Blueprint $table) {
|
||||
$table->string('loan_file')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('loan_paid_off_letters', function (Blueprint $table) {
|
||||
$table->dropColumn('loan_file');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -26,6 +26,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
* @property string $loan_contract_date
|
||||
* @property string $loan_amount
|
||||
* @property string $loan_reason
|
||||
* @property null|string $loan_file
|
||||
* @property \Illuminate\Support\Carbon $created_at
|
||||
* @property \Illuminate\Support\Carbon $updated_at
|
||||
*/
|
||||
|
||||
@@ -678,5 +678,6 @@
|
||||
"New card pin order": "Новый заказ PIN-кода карты",
|
||||
"Loan contract number": "Номер кредитного договора",
|
||||
"Loan contract date": "Дата кредитного договора",
|
||||
"Loan reason": "Причина кредита"
|
||||
"Loan reason": "Причина кредита",
|
||||
"Loan paid off letter file": "Файл заявления о погашении кредита"
|
||||
}
|
||||
|
||||
@@ -680,5 +680,6 @@
|
||||
"New card pin order": "Täze kart pin belgisini sargyt dörediň",
|
||||
"Loan contract number": "Karz şertnamanyň belgisi",
|
||||
"Loan contract date": "Karz şertnamanyň senesi",
|
||||
"Loan reason": "Karzyň maksady"
|
||||
"Loan reason": "Karzyň maksady",
|
||||
"Loan paid off letter file": "Karz ýapylandygy barada güwanama almak faýly"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user