Compare commits
139 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 42fcc5759f | |||
| 161d1c86bc | |||
| 4af8900a78 | |||
| abcf105d07 | |||
| d0292af20c | |||
| 26670fcca5 | |||
| f557d4b91c | |||
| 09e92506fd | |||
| 129dae4570 | |||
| f0a9180a54 | |||
| a6c250c13e | |||
| f84f78a138 | |||
| d9c1c825d9 | |||
| 13f8f09524 | |||
| 351b9064af | |||
| edc843fa1c | |||
| 8cf9e0b191 | |||
| 44852bdc95 | |||
| 7b70621c5a | |||
| 4c5cf1d355 | |||
| 5b46b4ac9e | |||
| 32c556a87b | |||
| aa6858bc0f | |||
| 04e62ea9b8 | |||
| 66366aa8b8 | |||
| 0e558fd1dc | |||
| 01be250e6c | |||
| 6614d13be2 | |||
| 61480399b3 | |||
| e3e7ac7f18 | |||
| f1c7e57e43 | |||
| ad50102c42 | |||
| 007da1227d | |||
| 58ae406b36 | |||
| 794f9556de | |||
| 6be7f4442a | |||
| 9361a01c80 | |||
| f9abe3c02a | |||
| efc6b911e7 | |||
| 793a843be7 | |||
| 742303eb73 | |||
| cfce7b8b3f | |||
| 13d12e4f8f | |||
| ba6431e500 | |||
| eca57bf9cc | |||
| 89b81e6ee8 | |||
| fa06ba7545 | |||
| 4eb0a96832 | |||
| 3600cc2334 | |||
| 554f22695d | |||
| af82f47ea0 | |||
| 612a24042b | |||
| 082fb33af3 | |||
| 5b07f385b1 | |||
| aa4a4b3e27 | |||
| b776ebbd26 | |||
| 0d3a514456 | |||
| 99e97edfd1 | |||
| db60909348 | |||
| 080c39ac88 | |||
| c3f343ad70 | |||
| fb1224f7c9 | |||
| f68bc87031 | |||
| fee4c8fa78 | |||
| e8352f599b | |||
| 80de8dc6f9 | |||
| e4e7599cb2 | |||
| 88c1657b6a | |||
| f195d22342 | |||
| 864f80c7b8 | |||
| d245055bf4 | |||
| 9c4dc0ff11 | |||
| 092eb09316 | |||
| 82ea32cd33 | |||
| 2ee018c37c | |||
| 81690db06d | |||
| a9c872e5b4 | |||
| 97e95efb17 | |||
| 181ec53ef0 | |||
| 0a3feba23a | |||
| f099d8f46a | |||
| 36ec1823c8 | |||
| 23f24e426b | |||
| cf4572cb03 | |||
| efa575a920 | |||
| fc2c99f0c2 | |||
| 3235a700c9 | |||
| e23ac8c346 | |||
| 93e45655eb | |||
| 1b0800beb6 | |||
| d828df82bb | |||
| 690ee11336 | |||
| c719e58d4e | |||
| 7e2cd6eff4 | |||
| 0bdf0c3394 | |||
| d7200111e2 | |||
| faf752dd3c | |||
| 31e695cd3a | |||
| f77866faa5 | |||
| fbbed52a3d | |||
| e7ad0123ac | |||
| f34fc0f2a0 | |||
| 9e6bcc22b6 | |||
| 3c023ba588 | |||
| ddbfc7e3a7 | |||
| 59d9dfe40d | |||
| f6091f1bb8 | |||
| 57d092c0a3 | |||
| 0649d38c48 | |||
| aa48ce7890 | |||
| e24b4bdf41 | |||
| 76081f0e85 | |||
| e0941fe931 | |||
| 1ef535d132 | |||
| b7ef2450bd | |||
| 38b06f9d1c | |||
| 5bc2fd0029 | |||
| d39acfc582 | |||
| 5a1dfb51a2 | |||
| af2b57c6d1 | |||
| dd0bee9355 | |||
| af147f5fea | |||
| 3c92a81cfe | |||
| 05e8059b5d | |||
| 5848cd5189 | |||
| c68e95631b | |||
| 8c4c58e094 | |||
| b7434e12c6 | |||
| 121ba7d9c0 | |||
| e054b04b06 | |||
| fe3d88c467 | |||
| 01a708b054 | |||
| bd1ccb29c0 | |||
| 8a08a0a89a | |||
| 5d88241595 | |||
| 4ec2683317 | |||
| 6fb2bfb265 | |||
| 5f6c468a4b | |||
| 48ae773e85 |
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class ResetUserPassword extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'user:reset-password {email? : Kullanıcının e-posta adresi} {password? : Yeni şifre (Belirtilmezse etkileşimli olarak istenir veya otomatik oluşturulur)}';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Belirtilen kullanıcının şifresini günceller';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
// E-posta adresini al veya sor
|
||||
$email = $this->argument('email') ?: $this->ask('Kullanıcının e-posta adresini giriniz:');
|
||||
|
||||
if (empty($email)) {
|
||||
$this->error('E-posta adresi boş olamaz!');
|
||||
return self::FAILURE;
|
||||
}
|
||||
|
||||
// Email formatını kontrol et
|
||||
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
|
||||
$this->error('Geçersiz e-posta formatı!');
|
||||
return self::FAILURE;
|
||||
}
|
||||
|
||||
// Kullanıcıyı bul
|
||||
$user = User::where('email', $email)->first();
|
||||
|
||||
if (!$user) {
|
||||
$this->error("E-posta adresi '{$email}' ile kayıtlı kullanıcı bulunamadı!");
|
||||
return self::FAILURE;
|
||||
}
|
||||
|
||||
// Şifreyi al veya sor ya da rastgele oluştur
|
||||
$password = $this->argument('password');
|
||||
|
||||
if ($password === null) {
|
||||
if ($this->confirm('Yeni şifreyi otomatik rastgele mi üretelim (6 haneli rakamsal)?', true)) {
|
||||
$password = (string) random_int(100000, 999999);
|
||||
} else {
|
||||
$password = $this->secret('Yeni şifreyi giriniz:');
|
||||
if (empty($password)) {
|
||||
$this->error('Şifre boş olamaz!');
|
||||
return self::FAILURE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Şifreyi güncelle ve kaydet
|
||||
$user->password = Hash::make($password);
|
||||
$user->save();
|
||||
|
||||
$this->info("✓ Kullanıcı '{$user->name}' ({$user->email}) şifresi başarıyla güncellendi!");
|
||||
$this->info("Yeni Şifre: {$password}");
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\Awards;
|
||||
|
||||
use App\Filament\Admin\Resources\Awards\Pages\CreateAward;
|
||||
use App\Filament\Admin\Resources\Awards\Pages\EditAward;
|
||||
use App\Filament\Admin\Resources\Awards\Pages\ListAwards;
|
||||
use App\Filament\Admin\Resources\Awards\Schemas\AwardForm;
|
||||
use App\Filament\Admin\Resources\Awards\Tables\AwardsTable;
|
||||
use App\Models\Award;
|
||||
use BackedEnum;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\SoftDeletingScope;
|
||||
|
||||
class AwardResource extends Resource
|
||||
{
|
||||
protected static ?string $model = Award::class;
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = 'heroicon-o-trophy';
|
||||
|
||||
protected static ?int $navigationSort = 46;
|
||||
|
||||
public static function getNavigationGroup(): ?string
|
||||
{
|
||||
return __('awards.navigation_group');
|
||||
}
|
||||
|
||||
public static function getNavigationLabel(): string
|
||||
{
|
||||
return __('awards.navigation_label');
|
||||
}
|
||||
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
return __('awards.model_label');
|
||||
}
|
||||
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
return __('awards.plural_model_label');
|
||||
}
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return AwardForm::configure($schema);
|
||||
}
|
||||
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
return AwardsTable::configure($table);
|
||||
}
|
||||
|
||||
public static function getRelations(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public static function getPages(): array
|
||||
{
|
||||
return [
|
||||
'index' => ListAwards::route('/'),
|
||||
'create' => CreateAward::route('/create'),
|
||||
'edit' => EditAward::route('/{record}/edit'),
|
||||
];
|
||||
}
|
||||
|
||||
public static function getRecordRouteBindingEloquentQuery(): Builder
|
||||
{
|
||||
return parent::getRecordRouteBindingEloquentQuery()
|
||||
->withoutGlobalScopes([
|
||||
SoftDeletingScope::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\Awards\Pages;
|
||||
|
||||
use App\Filament\Admin\Resources\Awards\AwardResource;
|
||||
use App\Filament\Admin\Resources\Components\TranslationTabs;
|
||||
use Filament\Resources\Pages\CreateRecord;
|
||||
|
||||
class CreateAward extends CreateRecord
|
||||
{
|
||||
protected static string $resource = AwardResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return __('awards.create') ?? 'Yeni Ödül Ekle';
|
||||
}
|
||||
|
||||
protected function getRedirectUrl(): string
|
||||
{
|
||||
return $this->getResource()::getUrl('index');
|
||||
}
|
||||
|
||||
protected function getCreatedNotificationTitle(): ?string
|
||||
{
|
||||
return __('awards.created_successfully') ?? 'Ödül başarıyla eklendi.';
|
||||
}
|
||||
|
||||
protected function afterCreate(): void
|
||||
{
|
||||
TranslationTabs::saveTranslations($this->record, $this->form->getState());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\Awards\Pages;
|
||||
|
||||
use App\Filament\Admin\Resources\Awards\AwardResource;
|
||||
use App\Filament\Admin\Resources\Components\TranslationTabs;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\ForceDeleteAction;
|
||||
use Filament\Actions\RestoreAction;
|
||||
use Filament\Resources\Pages\EditRecord;
|
||||
|
||||
class EditAward extends EditRecord
|
||||
{
|
||||
protected static string $resource = AwardResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return __('awards.edit') ?? 'Ödülü Düzenle';
|
||||
}
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
DeleteAction::make()
|
||||
->label(__('awards.delete') ?? 'Sil'),
|
||||
ForceDeleteAction::make()
|
||||
->label(__('awards.force_delete') ?? 'Kalıcı Olarak Sil'),
|
||||
RestoreAction::make()
|
||||
->label(__('awards.restore') ?? 'Geri Yükle'),
|
||||
];
|
||||
}
|
||||
|
||||
protected function getRedirectUrl(): string
|
||||
{
|
||||
return $this->getResource()::getUrl('index');
|
||||
}
|
||||
|
||||
protected function getSavedNotificationTitle(): ?string
|
||||
{
|
||||
return __('awards.updated_successfully') ?? 'Ödül başarıyla güncellendi.';
|
||||
}
|
||||
|
||||
protected function mutateFormDataBeforeFill(array $data): array
|
||||
{
|
||||
return array_merge($data, TranslationTabs::fillFromRecord($this->record));
|
||||
}
|
||||
|
||||
protected function afterSave(): void
|
||||
{
|
||||
TranslationTabs::saveTranslations($this->record, $this->form->getState());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\Awards\Pages;
|
||||
|
||||
use App\Filament\Admin\Resources\Awards\AwardResource;
|
||||
use Filament\Actions\CreateAction;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
|
||||
class ListAwards extends ListRecords
|
||||
{
|
||||
protected static string $resource = AwardResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return __('awards.title') ?? 'Ödüllerimiz';
|
||||
}
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
CreateAction::make()
|
||||
->label(__('awards.create') ?? 'Yeni Ödül Ekle'),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\Awards\Schemas;
|
||||
|
||||
use App\Filament\Admin\Resources\Components\TranslationTabs;
|
||||
use Filament\Forms\Components\Checkbox;
|
||||
use Filament\Forms\Components\FileUpload;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Forms\Components\DatePicker;
|
||||
use Filament\Forms\Components\Toggle;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
|
||||
class AwardForm
|
||||
{
|
||||
public static function categoryOptions(): array
|
||||
{
|
||||
return [
|
||||
'hackathon' => __('awards.category_hackathon') ?? 'Hackathon',
|
||||
'export' => __('awards.category_export') ?? 'İhracat',
|
||||
'innovation' => __('awards.category_innovation') ?? 'İnovasyon',
|
||||
'design' => __('awards.category_design') ?? 'Tasarım',
|
||||
'general' => __('awards.category_general') ?? 'Genel',
|
||||
];
|
||||
}
|
||||
|
||||
public static function configure(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->columns(3)
|
||||
->schema([
|
||||
Section::make(__('awards.content_section') ?? 'Ödül İçeriği')
|
||||
->schema([
|
||||
TextInput::make('title')
|
||||
->label(__('awards.title_field') ?? 'Ödül Başlığı (Varsayılan)')
|
||||
->required()
|
||||
->maxLength(255),
|
||||
|
||||
TextInput::make('issuer')
|
||||
->label(__('awards.issuer_field') ?? 'Ödülü Veren Kurum (Varsayılan)')
|
||||
->required()
|
||||
->maxLength(255),
|
||||
|
||||
Textarea::make('description')
|
||||
->label(__('awards.description_field') ?? 'Açıklama (Varsayılan)')
|
||||
->required()
|
||||
->rows(5)
|
||||
->columnSpanFull(),
|
||||
|
||||
TranslationTabs::make([
|
||||
'title' => [
|
||||
'type' => 'text',
|
||||
'label' => __('awards.title_field') ?? 'Ödül Başlığı',
|
||||
'required' => false,
|
||||
'maxLength' => 255,
|
||||
],
|
||||
'issuer' => [
|
||||
'type' => 'text',
|
||||
'label' => __('awards.issuer_field') ?? 'Ödülü Veren Kurum',
|
||||
'required' => false,
|
||||
'maxLength' => 255,
|
||||
],
|
||||
'description' => [
|
||||
'type' => 'textarea',
|
||||
'label' => __('awards.description_field') ?? 'Açıklama',
|
||||
'required' => false,
|
||||
'rows' => 5,
|
||||
],
|
||||
]),
|
||||
])
|
||||
->columnSpan(2),
|
||||
|
||||
Section::make(__('awards.settings_section') ?? 'Ödül Ayarları')
|
||||
->schema([
|
||||
FileUpload::make('image')
|
||||
->label(__('awards.image_field') ?? 'Ödül Görseli / Logo')
|
||||
->image()
|
||||
->disk('public')
|
||||
->directory('awards')
|
||||
->required(),
|
||||
|
||||
DatePicker::make('award_date')
|
||||
->label(__('awards.date_field') ?? 'Ödül Tarihi')
|
||||
->required(),
|
||||
|
||||
Select::make('category')
|
||||
->label(__('awards.category_field') ?? 'Kategori')
|
||||
->options(self::categoryOptions())
|
||||
->default('general')
|
||||
->required()
|
||||
->native(false),
|
||||
|
||||
TextInput::make('external_link')
|
||||
->label(__('awards.link_field') ?? 'Doğrulama / Haber Linki')
|
||||
->url()
|
||||
->maxLength(255),
|
||||
|
||||
TextInput::make('sort_order')
|
||||
->label(__('awards.sort_order_field') ?? 'Sıralama')
|
||||
->numeric()
|
||||
->default(0)
|
||||
->minValue(0),
|
||||
|
||||
Toggle::make('is_featured')
|
||||
->label(__('awards.is_featured_field') ?? 'Öne Çıkarılan Ödül')
|
||||
->default(false),
|
||||
|
||||
Toggle::make('is_active')
|
||||
->label(__('awards.is_active_field') ?? 'Aktif / Görünür')
|
||||
->default(true),
|
||||
])
|
||||
->columnSpan(1),
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\Awards\Tables;
|
||||
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Actions\ForceDeleteBulkAction;
|
||||
use Filament\Actions\RestoreBulkAction;
|
||||
use Filament\Tables\Columns\ImageColumn;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Columns\ToggleColumn;
|
||||
use Filament\Tables\Filters\TernaryFilter;
|
||||
use Filament\Tables\Filters\TrashedFilter;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class AwardsTable
|
||||
{
|
||||
public static function configure(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
ImageColumn::make('image')
|
||||
->label(__('awards.table_image') ?? 'Logo')
|
||||
->disk('public')
|
||||
->square()
|
||||
->size(50),
|
||||
|
||||
TextColumn::make('title')
|
||||
->label(__('awards.table_title') ?? 'Ödül Başlığı')
|
||||
->searchable()
|
||||
->sortable()
|
||||
->limit(40),
|
||||
|
||||
TextColumn::make('issuer')
|
||||
->label(__('awards.table_issuer') ?? 'Veren Kurum')
|
||||
->searchable()
|
||||
->sortable()
|
||||
->limit(30),
|
||||
|
||||
TextColumn::make('award_date')
|
||||
->label(__('awards.table_date') ?? 'Ödül Tarihi')
|
||||
->date('d.m.Y')
|
||||
->sortable()
|
||||
->alignCenter(),
|
||||
|
||||
TextColumn::make('category')
|
||||
->label(__('awards.table_category') ?? 'Kategori')
|
||||
->badge()
|
||||
->formatStateUsing(fn (string $state): string => match ($state) {
|
||||
'hackathon' => __('awards.category_hackathon') ?? 'Hackathon',
|
||||
'export' => __('awards.category_export') ?? 'İhracat',
|
||||
'innovation' => __('awards.category_innovation') ?? 'İnovasyon',
|
||||
'design' => __('awards.category_design') ?? 'Tasarım',
|
||||
default => __('awards.category_general') ?? 'Genel',
|
||||
})
|
||||
->sortable()
|
||||
->alignCenter(),
|
||||
|
||||
ToggleColumn::make('is_featured')
|
||||
->label(__('awards.table_is_featured') ?? 'Öne Çıkan')
|
||||
->alignCenter(),
|
||||
|
||||
ToggleColumn::make('is_active')
|
||||
->label(__('awards.table_is_active') ?? 'Aktif')
|
||||
->alignCenter(),
|
||||
|
||||
TextColumn::make('sort_order')
|
||||
->label(__('awards.sort_order_field') ?? 'Sıra')
|
||||
->sortable()
|
||||
->alignCenter(),
|
||||
])
|
||||
->filters([
|
||||
TernaryFilter::make('is_active')
|
||||
->label(__('awards.is_active_field') ?? 'Aktiflik Durumu'),
|
||||
TernaryFilter::make('is_featured')
|
||||
->label(__('awards.is_featured_field') ?? 'Öne Çıkarılma Durumu'),
|
||||
TrashedFilter::make(),
|
||||
])
|
||||
->recordActions([
|
||||
EditAction::make()
|
||||
->label(__('awards.edit') ?? 'Düzenle'),
|
||||
])
|
||||
->actions([
|
||||
// Individual actions can be put here if necessary
|
||||
])
|
||||
->toolbarActions([
|
||||
BulkActionGroup::make([
|
||||
DeleteBulkAction::make()
|
||||
->label(__('awards.delete') ?? 'Sil'),
|
||||
RestoreBulkAction::make()
|
||||
->label(__('awards.restore') ?? 'Geri Yükle'),
|
||||
ForceDeleteBulkAction::make()
|
||||
->label(__('awards.force_delete') ?? 'Kalıcı Olarak Sil'),
|
||||
]),
|
||||
])
|
||||
->defaultSort('sort_order', 'asc')
|
||||
->reorderable('sort_order');
|
||||
}
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\CareerApplications;
|
||||
|
||||
use App\Filament\Admin\Resources\CareerApplications\Pages\CreateCareerApplication;
|
||||
use App\Filament\Admin\Resources\CareerApplications\Pages\EditCareerApplication;
|
||||
use App\Filament\Admin\Resources\CareerApplications\Pages\ListCareerApplications;
|
||||
use App\Filament\Admin\Resources\CareerApplications\Schemas\CareerApplicationForm;
|
||||
use App\Filament\Admin\Resources\CareerApplications\Tables\CareerApplicationsTable;
|
||||
use App\Models\CareerApplication;
|
||||
use BackedEnum;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class CareerApplicationResource extends Resource
|
||||
{
|
||||
protected static ?string $model = CareerApplication::class;
|
||||
|
||||
protected static BackedEnum|string|null $navigationIcon = 'heroicon-o-user-group';
|
||||
|
||||
public static function getNavigationLabel(): string
|
||||
{
|
||||
return __('career.navigation_label');
|
||||
}
|
||||
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
return __('career.model_label');
|
||||
}
|
||||
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
return __('career.plural_model_label');
|
||||
}
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return CareerApplicationForm::configure($schema);
|
||||
}
|
||||
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
return CareerApplicationsTable::configure($table);
|
||||
}
|
||||
|
||||
public static function getPages(): array
|
||||
{
|
||||
return [
|
||||
'index' => ListCareerApplications::route('/'),
|
||||
'create' => CreateCareerApplication::route('/create'),
|
||||
'edit' => EditCareerApplication::route('/{record}/edit'),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\CareerApplications\Pages;
|
||||
|
||||
use App\Filament\Admin\Resources\CareerApplications\CareerApplicationResource;
|
||||
use Filament\Resources\Pages\CreateRecord;
|
||||
|
||||
class CreateCareerApplication extends CreateRecord
|
||||
{
|
||||
protected static string $resource = CareerApplicationResource::class;
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\CareerApplications\Pages;
|
||||
|
||||
use App\Filament\Admin\Resources\CareerApplications\CareerApplicationResource;
|
||||
use Filament\Actions\CreateAction;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
|
||||
class ListCareerApplications extends ListRecords
|
||||
{
|
||||
protected static string $resource = CareerApplicationResource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
CreateAction::make(),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -1,93 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\CareerApplications\Schemas;
|
||||
|
||||
use Filament\Forms\Components\FileUpload;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Schemas\Components\Utilities\Set;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class CareerApplicationForm
|
||||
{
|
||||
public static function configure(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
TextInput::make('name')
|
||||
->label(__('career.name'))
|
||||
->required()
|
||||
->disabled(),
|
||||
|
||||
TextInput::make('email')
|
||||
->label(__('career.email'))
|
||||
->email()
|
||||
->required()
|
||||
->disabled(),
|
||||
|
||||
TextInput::make('phone')
|
||||
->label(__('career.phone'))
|
||||
->disabled(),
|
||||
|
||||
FileUpload::make('cv_path')
|
||||
->label(__('career.cv'))
|
||||
->disk('public')
|
||||
->directory('cvs')
|
||||
->required()
|
||||
->disabled()
|
||||
->downloadable(),
|
||||
|
||||
Textarea::make('message')
|
||||
->label(__('career.message'))
|
||||
->disabled()
|
||||
->columnSpanFull(),
|
||||
|
||||
Select::make('status')
|
||||
->label(__('career.status'))
|
||||
->options([
|
||||
'pending' => 'Pending',
|
||||
'reviewed' => 'Reviewed',
|
||||
'rejected' => 'Rejected',
|
||||
'accepted' => 'Accepted',
|
||||
])
|
||||
->required(),
|
||||
|
||||
Section::make('Stajyer Giriş Bilgileri & Belgeleri')
|
||||
->description('Stajyerin sisteme giriş yapabilmesi için kullanıcı adı, şifre belirleyin ve imzalı staj formunu yükleyin.')
|
||||
->collapsible()
|
||||
->schema([
|
||||
TextInput::make('username')
|
||||
->label('Kullanıcı Adı')
|
||||
->unique(ignoreRecord: true)
|
||||
->nullable(),
|
||||
|
||||
TextInput::make('password')
|
||||
->label('Şifre')
|
||||
->password()
|
||||
->revealable()
|
||||
->dehydrateStateUsing(fn ($state) => filled($state) ? Hash::make($state) : null)
|
||||
->dehydrated(fn ($state) => filled($state))
|
||||
->placeholder('Şifreyi değiştirmek istemiyorsanız boş bırakın')
|
||||
->nullable()
|
||||
->suffixAction(
|
||||
Action::make('generatePassword')
|
||||
->icon('heroicon-m-arrow-path')
|
||||
->action(fn (Set $set) => $set('password', Str::random(12)))
|
||||
),
|
||||
|
||||
FileUpload::make('signed_internship_form_path')
|
||||
->label('İmzalı Staj Formu')
|
||||
->disk('public')
|
||||
->directory('signed_interns')
|
||||
->downloadable()
|
||||
->nullable(),
|
||||
])
|
||||
->columnSpanFull(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -1,121 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\CareerApplications\Tables;
|
||||
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
class CareerApplicationsTable
|
||||
{
|
||||
public static function configure(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('name')
|
||||
->label(__('career.name'))
|
||||
->searchable()
|
||||
->sortable(),
|
||||
|
||||
TextColumn::make('email')
|
||||
->label(__('career.email'))
|
||||
->searchable()
|
||||
->sortable(),
|
||||
|
||||
TextColumn::make('phone')
|
||||
->label(__('career.phone'))
|
||||
->searchable(),
|
||||
|
||||
TextColumn::make('type')
|
||||
->label(__('career.type'))
|
||||
->badge()
|
||||
->color(fn (string $state): string => match ($state) {
|
||||
'job' => 'success',
|
||||
'internship' => 'warning',
|
||||
default => 'gray',
|
||||
})
|
||||
->formatStateUsing(fn (string $state): string => __("career.{$state}")),
|
||||
|
||||
TextColumn::make('status')
|
||||
->label(__('career.status'))
|
||||
->badge()
|
||||
->color(fn (string $state): string => match ($state) {
|
||||
'pending' => 'gray',
|
||||
'reviewed' => 'info',
|
||||
'rejected' => 'danger',
|
||||
'accepted' => 'success',
|
||||
default => 'gray',
|
||||
}),
|
||||
|
||||
TextColumn::make('git_knowledge')
|
||||
->label(__('career.git_knowledge'))
|
||||
->badge()
|
||||
->color(fn ($state) => $state ? 'success' : 'danger')
|
||||
->formatStateUsing(fn ($state) => $state ? 'Evet' : 'Hayır'),
|
||||
|
||||
TextColumn::make('ai_usage')
|
||||
->label(__('career.ai_usage'))
|
||||
->badge()
|
||||
->color(fn ($state) => $state ? 'success' : 'danger')
|
||||
->formatStateUsing(fn ($state) => $state ? 'Evet' : 'Hayır'),
|
||||
|
||||
TextColumn::make('created_at')
|
||||
->label(__('career.created_at'))
|
||||
->dateTime('d.m.Y H:i')
|
||||
->sortable(),
|
||||
])
|
||||
->filters([
|
||||
SelectFilter::make('status')
|
||||
->label(__('career.status'))
|
||||
->options([
|
||||
'pending' => 'Pending',
|
||||
'reviewed' => 'Reviewed',
|
||||
'rejected' => 'Rejected',
|
||||
'accepted' => 'Accepted',
|
||||
]),
|
||||
SelectFilter::make('type')
|
||||
->label(__('career.type'))
|
||||
->options([
|
||||
'job' => __('career.job'),
|
||||
'internship' => __('career.internship'),
|
||||
]),
|
||||
])
|
||||
->actions([
|
||||
Action::make('download_cv')
|
||||
->label(__('career.download_cv'))
|
||||
->icon('heroicon-o-arrow-down-tray')
|
||||
->url(fn ($record) => Storage::disk('public')->url($record->cv_path))
|
||||
->openUrlInNewTab(),
|
||||
Action::make('download_signed_form')
|
||||
->label('İmzalı Form İndir')
|
||||
->icon('heroicon-o-document-check')
|
||||
->url(fn ($record) => $record->signed_internship_form_path ? Storage::disk('public')->url($record->signed_internship_form_path) : null)
|
||||
->visible(fn ($record) => !empty($record->signed_internship_form_path))
|
||||
->openUrlInNewTab(),
|
||||
Action::make('download_nda')
|
||||
->label(__('career.nda'))
|
||||
->icon('heroicon-o-shield-check')
|
||||
->url(fn ($record) => $record->nda_path ? Storage::disk('public')->url($record->nda_path) : null)
|
||||
->visible(fn ($record) => $record->nda_path !== null)
|
||||
->openUrlInNewTab(),
|
||||
Action::make('download_contract')
|
||||
->label(__('career.contract'))
|
||||
->icon('heroicon-o-document-text')
|
||||
->url(fn ($record) => $record->contract_path ? Storage::disk('public')->url($record->contract_path) : null)
|
||||
->visible(fn ($record) => $record->contract_path !== null)
|
||||
->openUrlInNewTab(),
|
||||
DeleteAction::make(),
|
||||
])
|
||||
->bulkActions([
|
||||
BulkActionGroup::make([
|
||||
DeleteBulkAction::make(),
|
||||
]),
|
||||
])
|
||||
->defaultSort('created_at', 'desc');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,513 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\InternApplications;
|
||||
|
||||
use App\Models\CareerApplication;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Tables\Table;
|
||||
use Filament\Forms\Components\FileUpload;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Forms\Components\DatePicker;
|
||||
use Filament\Forms\Components\MarkdownEditor;
|
||||
use Filament\Schemas\Components\Tabs;
|
||||
use Filament\Schemas\Components\Tabs\Tab;
|
||||
use Filament\Schemas\Components\Livewire;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Str;
|
||||
use Filament\Schemas\Components\Utilities\Set;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
|
||||
class InternApplicationResource extends Resource
|
||||
{
|
||||
protected static ?string $model = CareerApplication::class;
|
||||
|
||||
protected static \BackedEnum|string|null $navigationIcon = 'heroicon-o-academic-cap';
|
||||
|
||||
public static function getNavigationLabel(): string
|
||||
{
|
||||
return __('career.internship_title', ['default' => 'Staj Başvuruları']);
|
||||
}
|
||||
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
return __('career.internship', ['default' => 'Staj Başvurusu']);
|
||||
}
|
||||
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
return __('career.internship_title', ['default' => 'Staj Başvuruları']);
|
||||
}
|
||||
|
||||
public static function getEloquentQuery(): Builder
|
||||
{
|
||||
return parent::getEloquentQuery()->where('type', 'internship');
|
||||
}
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
Tabs::make('Tabs')
|
||||
->tabs([
|
||||
Tab::make('Kişisel ve Başvuru Bilgileri')
|
||||
->icon('heroicon-m-user')
|
||||
->schema([
|
||||
TextInput::make('name')
|
||||
->label(__('career.name'))
|
||||
->required()
|
||||
->disabled(),
|
||||
|
||||
TextInput::make('email')
|
||||
->label(__('career.email'))
|
||||
->email()
|
||||
->required()
|
||||
->disabled(),
|
||||
|
||||
TextInput::make('phone')
|
||||
->label(__('career.phone'))
|
||||
->disabled(),
|
||||
|
||||
Select::make('status')
|
||||
->label(__('career.status'))
|
||||
->options([
|
||||
'pending' => __('career.pending'),
|
||||
'reviewed' => __('career.reviewed'),
|
||||
'rejected' => __('career.rejected'),
|
||||
'accepted' => __('career.accepted'),
|
||||
'waiting_document' => __('career.waiting_document'),
|
||||
])
|
||||
->required(),
|
||||
|
||||
Textarea::make('message')
|
||||
->label(__('career.message'))
|
||||
->disabled()
|
||||
->columnSpanFull(),
|
||||
])->columns(2),
|
||||
|
||||
Tab::make('Staj Belgeleri & Giriş Bilgileri')
|
||||
->icon('heroicon-m-document-text')
|
||||
->schema([
|
||||
FileUpload::make('cv_path')
|
||||
->label(__('career.cv'))
|
||||
->disk('public')
|
||||
->directory('cvs')
|
||||
->required()
|
||||
->disabled()
|
||||
->downloadable(),
|
||||
|
||||
TextInput::make('username')
|
||||
->label('Kullanıcı Adı')
|
||||
->default(fn ($record) => $record?->email)
|
||||
->disabled()
|
||||
->dehydrated()
|
||||
->autocomplete('new-username'),
|
||||
|
||||
TextInput::make('password')
|
||||
->label('Şifre')
|
||||
->password()
|
||||
->revealable()
|
||||
->autocomplete('new-password')
|
||||
->formatStateUsing(fn () => null)
|
||||
->dehydrateStateUsing(fn ($state) => filled($state) ? Hash::make($state) : null)
|
||||
->dehydrated(fn ($state) => filled($state))
|
||||
->placeholder('Şifreyi değiştirmek istemiyorsanız boş bırakın')
|
||||
->nullable()
|
||||
->suffixAction(
|
||||
\Filament\Actions\Action::make('generatePassword')
|
||||
->icon('heroicon-m-arrow-path')
|
||||
->action(fn (Set $set) => $set('password', Str::random(12)))
|
||||
),
|
||||
|
||||
FileUpload::make('to_be_signed_internship_form_path')
|
||||
->label('İmzalanacak Staj Formu (Stajyerden)')
|
||||
->disk('public')
|
||||
->directory('to_be_signed_interns')
|
||||
->downloadable()
|
||||
->nullable(),
|
||||
|
||||
FileUpload::make('signed_internship_form_path')
|
||||
->label('İmzalı Staj Formu')
|
||||
->disk('public')
|
||||
->directory('signed_interns')
|
||||
->downloadable()
|
||||
->live()
|
||||
->afterStateUpdated(function ($state, Set $set) {
|
||||
if ($state) {
|
||||
$set('status', 'accepted');
|
||||
}
|
||||
})
|
||||
->nullable(),
|
||||
|
||||
DatePicker::make('internship_start_date')
|
||||
->label('Staj Başlangıç Tarihi')
|
||||
->live()
|
||||
->afterStateUpdated(function ($state, $get, Set $set) {
|
||||
if ($state && $get('internship_total_days')) {
|
||||
self::calculateEndDate($state, $get('internship_total_days'), $set);
|
||||
} elseif ($state && $get('internship_end_date')) {
|
||||
self::calculateTotalDays($state, $get('internship_end_date'), $set);
|
||||
}
|
||||
})
|
||||
->nullable(),
|
||||
|
||||
DatePicker::make('internship_end_date')
|
||||
->label('Staj Bitiş Tarihi')
|
||||
->live()
|
||||
->afterStateUpdated(fn ($state, $get, Set $set) => self::calculateTotalDays($get('internship_start_date'), $state, $set))
|
||||
->nullable(),
|
||||
|
||||
TextInput::make('internship_total_days')
|
||||
->label('Toplam Staj Süresi (İş Günü)')
|
||||
->numeric()
|
||||
->live()
|
||||
->afterStateUpdated(fn ($state, $get, Set $set) => self::calculateEndDate($get('internship_start_date'), $state, $set))
|
||||
->nullable(),
|
||||
])->columns(2),
|
||||
|
||||
Tab::make('Staj Günlüğü')
|
||||
->icon('heroicon-m-squares-plus')
|
||||
->schema([
|
||||
TextInput::make('github_repo')
|
||||
->label('GitHub Depo URL\'si')
|
||||
->url()
|
||||
->nullable()
|
||||
->live(),
|
||||
|
||||
Livewire::make(\App\Livewire\InternJournalTimeline::class)
|
||||
->columnSpanFull()
|
||||
]),
|
||||
|
||||
Tab::make('Staj Defteri & Onay')
|
||||
->icon('heroicon-o-book-open')
|
||||
->schema([
|
||||
\Filament\Forms\Components\Placeholder::make('notebook_view')
|
||||
->label('Doldurulan Staj Defteri')
|
||||
->content(function ($record) {
|
||||
if (!$record) return 'Henüz başvuru bulunmamaktadır.';
|
||||
$days = \App\Http\Controllers\CareerController::getInternshipDates($record->internship_start_date, $record->internship_total_days);
|
||||
if (empty($days)) return 'Staj başlangıç tarihi veya süresi girilmemiş.';
|
||||
|
||||
$saved = $record->journalEntries()->get()->keyBy('day_number');
|
||||
|
||||
$html = '<style>
|
||||
.rich-text-content p { margin-bottom: 8px; }
|
||||
.rich-text-content ul { list-style-type: disc; padding-left: 20px; margin-bottom: 8px; }
|
||||
.rich-text-content ol { list-style-type: decimal; padding-left: 20px; margin-bottom: 8px; }
|
||||
.rich-text-content li { margin-bottom: 4px; }
|
||||
</style>';
|
||||
$html .= '<div class="space-y-4" style="max-height: 400px; overflow-y: auto; padding-right: 10px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 15px;">';
|
||||
foreach ($days as $d) {
|
||||
$dayNum = $d['day_number'];
|
||||
$dateF = $d['formatted_date'];
|
||||
$entry = $saved->get($dayNum);
|
||||
$content = $entry ? $entry->content : '';
|
||||
$isRetro = $entry ? $entry->is_retroactive : false;
|
||||
$updatedAt = $entry ? $entry->updated_at->format('d.m.Y H:i') : null;
|
||||
|
||||
$html .= '<div style="margin-bottom: 12px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc;">';
|
||||
$html .= ' <div style="display:flex; justify-content:between; font-size:11px; font-weight:700; color:#475569; border-bottom:1px solid #e2e8f0; padding-bottom:6px; margin-bottom:8px;">';
|
||||
$html .= ' <span style="font-weight: 800; color: #2563eb;">' . $dayNum . '. Gün Raporu</span>';
|
||||
if ($isRetro) {
|
||||
$html .= ' <span style="margin-left: 10px; background: #fee2e2; color: #991b1b; padding: 1px 6px; border-radius: 4px; font-size: 9px; font-weight: 800;">GERİYE DÖNÜK KAYIT</span>';
|
||||
}
|
||||
if ($updatedAt) {
|
||||
$html .= ' <span style="margin-left: auto;">Son Güncelleme: ' . $updatedAt . '</span>';
|
||||
} else {
|
||||
$html .= ' <span style="margin-left: auto;">' . $dateF . '</span>';
|
||||
}
|
||||
$html .= ' </div>';
|
||||
|
||||
$cleanContent = $content ? strip_tags($content, ['p', 'strong', 'ul', 'li', 'em', 'br', 'b', 'i', 'ol', 'span']) : '<em style="color:#94a3b8;">Rapor yazılmamış</em>';
|
||||
$html .= ' <div class="rich-text-content" style="font-size:12px; color:#1e293b; line-height:1.5;">' . $cleanContent . '</div>';
|
||||
|
||||
if ($entry && trim($content) !== '') {
|
||||
$supApproved = $entry->supervisor_approved;
|
||||
$supName = $entry->supervisor_name;
|
||||
|
||||
$html .= ' <div style="display:flex; align-items:center; gap:12px; margin-top:12px; padding-top:10px; border-top:1px dashed #e2e8f0; font-size:11px;">';
|
||||
|
||||
// Supervisor approval
|
||||
$supBg = $supApproved ? '#d1fae5' : '#f1f5f9';
|
||||
$supColor = $supApproved ? '#065f46' : '#64748b';
|
||||
$supText = $supApproved ? 'Sorumlu Onayladı' . ($supName ? ' (Onaylayan: ' . e($supName) . ')' : '') : 'Sorumlu Onayı Bekliyor';
|
||||
$html .= ' <span id="sup-badge-' . $entry->id . '" style="background:' . $supBg . '; color:' . $supColor . '; padding: 2px 8px; border-radius: 4px; font-weight: 700;">' . $supText . '</span>';
|
||||
|
||||
// Buttons
|
||||
$supBtnText = $supApproved ? 'Onayı Kaldır' : 'Onayla';
|
||||
$supBtnBg = $supApproved ? '#ef4444' : '#2563eb';
|
||||
$html .= ' <button type="button" onclick="toggleApproval(' . $entry->id . ', this)" style="margin-left:auto; background:' . $supBtnBg . '; color:white; border:none; padding:4px 10px; border-radius:6px; font-weight:bold; cursor:pointer; font-size:10px;">Sorumlu ' . $supBtnText . '</button>';
|
||||
|
||||
$html .= ' </div>';
|
||||
}
|
||||
|
||||
$html .= '</div>';
|
||||
}
|
||||
$html .= '</div>';
|
||||
|
||||
// JS handler
|
||||
$html .= '
|
||||
<script>
|
||||
if (typeof window.toggleApproval !== "function") {
|
||||
window.toggleApproval = function(entryId, btn) {
|
||||
btn.disabled = true;
|
||||
btn.style.opacity = "0.5";
|
||||
|
||||
fetch("' . route('intern.admin.toggle-journal-approval') . '", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"X-CSRF-TOKEN": "' . csrf_token() . '"
|
||||
},
|
||||
body: JSON.stringify({
|
||||
entry_id: entryId
|
||||
})
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
if (data.success) {
|
||||
const badge = document.getElementById("sup-badge-" + entryId);
|
||||
if (data.status) {
|
||||
badge.style.background = "#d1fae5";
|
||||
badge.style.color = "#065f46";
|
||||
badge.textContent = "Sorumlu Onayladı (Onaylayan: " + data.supervisor_name + ")";
|
||||
btn.textContent = "Sorumlu Onayı Kaldır";
|
||||
btn.style.background = "#ef4444";
|
||||
} else {
|
||||
badge.style.background = "#f1f5f9";
|
||||
badge.style.color = "#64748b";
|
||||
badge.textContent = "Sorumlu Onayı Bekliyor";
|
||||
btn.textContent = "Sorumlu Onayla";
|
||||
btn.style.background = "#2563eb";
|
||||
}
|
||||
} else {
|
||||
alert(data.message || "Bir hata oluştu.");
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
alert("Bağlantı hatası oluştu.");
|
||||
})
|
||||
.finally(() => {
|
||||
btn.disabled = false;
|
||||
btn.style.opacity = "1";
|
||||
});
|
||||
};
|
||||
}
|
||||
</script>
|
||||
';
|
||||
|
||||
// Add preview buttons
|
||||
$html .= '<div style="margin-top: 15px; display: flex; gap: 10px;">';
|
||||
$html .= ' <a href="' . route('intern.print-journal') . '?size=a4&intern_id=' . $record->id . '" target="_blank" style="display:inline-flex; align-items:center; justify-content:center; padding: 8px 16px; background:#2563eb; color:white; border-radius:8px; font-weight:bold; font-size:12px; text-decoration:none; box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);">A4 Defteri Önizle / Yazdır</a>';
|
||||
$html .= ' <a href="' . route('intern.print-journal') . '?size=a5&intern_id=' . $record->id . '" target="_blank" style="display:inline-flex; align-items:center; justify-content:center; padding: 8px 16px; background:#4b5563; color:white; border-radius:8px; font-weight:bold; font-size:12px; text-decoration:none; box-shadow: 0 1px 3px rgba(75, 85, 99, 0.2);">A5 Defteri Önizle / Yazdır</a>';
|
||||
$html .= '</div>';
|
||||
|
||||
return new \Illuminate\Support\HtmlString($html);
|
||||
})
|
||||
->columnSpanFull(),
|
||||
|
||||
\Filament\Schemas\Components\Section::make('Onay ve İmza Bilgileri')
|
||||
->schema([
|
||||
\Filament\Forms\Components\Toggle::make('notebook_supervisor_signed')
|
||||
->label('Staj Sorumlusu İmzala / Onayla')
|
||||
->live(),
|
||||
TextInput::make('notebook_supervisor_name')
|
||||
->label('Staj Sorumlusu Adı / Ünvanı')
|
||||
->placeholder('Örn: Alperen Trunç')
|
||||
->default('Alperen Trunç'),
|
||||
\Filament\Forms\Components\Toggle::make('notebook_approved')
|
||||
->label('Staj Defterini Genel Olarak Onayla')
|
||||
->columnSpanFull(),
|
||||
])->columns(2),
|
||||
]),
|
||||
|
||||
Tab::make('Sertifika & Transkript')
|
||||
->icon('heroicon-o-academic-cap')
|
||||
->schema([
|
||||
TextInput::make('certificate_code')
|
||||
->label('Doğrulama Kodu')
|
||||
->helperText('Belge kaydedildiğinde benzersiz doğrulama kodu otomatik olarak üretilir.')
|
||||
->readonly()
|
||||
->nullable(),
|
||||
|
||||
MarkdownEditor::make('transcript_markdown')
|
||||
->label('Akademik Transkript (Markdown)')
|
||||
->columnSpanFull()
|
||||
->default(function () {
|
||||
return "### STAJ AKADEMİK TRANSKRİPTİ VE PERFORMANS RAPORU\n\n" .
|
||||
"#### 🛠️ Deneyimlenen Teknolojiler ve Kazanımlar\n" .
|
||||
"| Modül / Çalışma Alanı | Kullanılan Teknolojiler / Araçlar | Değerlendirme |\n" .
|
||||
"| --- | --- | --- |\n" .
|
||||
"| Backend Mimari & API | Laravel framework, RESTful API, MySQL | Başarılı |\n" .
|
||||
"| Arayüz & UI/UX Uygulamaları | Flutter, CSS, Glassmorphic Tasarım Prensipleri | Üstün Başarı |\n" .
|
||||
"| Masaüstü & Sistem Entegrasyonu | Electron.js, Git / GitHub | Başarılı |\n" .
|
||||
"| Takım Çalışması & Proje Yönetimi | Agile / Scrum, Slack, JIRA | Başarılı |\n\n" .
|
||||
"#### 📊 Performans Değerlendirme Kriterleri\n" .
|
||||
"| Değerlendirme Kriteri | Puan (100 Üzerinden) | Harf Notu |\n" .
|
||||
"| --- | --- | --- |\n" .
|
||||
"| Teknik Sorumluluk ve Görev Bilinci | 95 | AA |\n" .
|
||||
"| Problem Çözme ve Analitik Düşünme | 90 | BA |\n" .
|
||||
"| Ekip Çalışması ve İletişim Uyum | 95 | AA |\n" .
|
||||
"| Öğrenme Hızı ve Adaptasyon | 100 | AA |\n" .
|
||||
"| **GENEL BAŞARI ORTALAMASI** | **95.00** | **AA (Mükemmel)** |\n\n" .
|
||||
"#### 📝 Danışman Görüşü ve Değerlendirme Notu\n" .
|
||||
"\"Stajyerimiz, staj süresi boyunca kendisine verilen görevleri büyük bir titizlikle yerine getirmiştir. Özellikle karşılaştığı teknik problemlere getirdiği pratik çözümler ve yeni teknolojileri öğrenme isteği takdir edilmeye değerdir. Kurumumuz bünyesinde yürüttüğümüz projelere sağladığı katkılardan ötürü teşekkür eder, profesyonel kariyerinde başarılar dileriz.\"";
|
||||
}),
|
||||
])->columns(1)
|
||||
])->columnSpanFull()
|
||||
]);
|
||||
}
|
||||
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('name')
|
||||
->label(__('career.name'))
|
||||
->searchable()
|
||||
->sortable(),
|
||||
|
||||
TextColumn::make('email')
|
||||
->label(__('career.email'))
|
||||
->searchable()
|
||||
->sortable(),
|
||||
|
||||
TextColumn::make('phone')
|
||||
->label(__('career.phone'))
|
||||
->searchable(),
|
||||
|
||||
TextColumn::make('status')
|
||||
->label(__('career.status'))
|
||||
->badge()
|
||||
->color(fn (string $state): string => match ($state) {
|
||||
'pending' => 'gray',
|
||||
'reviewed' => 'info',
|
||||
'rejected' => 'danger',
|
||||
'accepted' => 'success',
|
||||
'waiting_document' => 'warning',
|
||||
default => 'gray',
|
||||
})
|
||||
->formatStateUsing(fn (string $state): string => __("career.{$state}")),
|
||||
|
||||
TextColumn::make('certificate_code')
|
||||
->label('Sertifika Kodu')
|
||||
->searchable()
|
||||
->placeholder('Yok'),
|
||||
|
||||
TextColumn::make('created_at')
|
||||
->label(__('career.created_at'))
|
||||
->dateTime('d.m.Y H:i')
|
||||
->sortable(),
|
||||
])
|
||||
->filters([
|
||||
SelectFilter::make('status')
|
||||
->label(__('career.status'))
|
||||
->options([
|
||||
'pending' => __('career.pending'),
|
||||
'reviewed' => __('career.reviewed'),
|
||||
'rejected' => __('career.rejected'),
|
||||
'accepted' => __('career.accepted'),
|
||||
'waiting_document' => __('career.waiting_document'),
|
||||
]),
|
||||
])
|
||||
->actions([
|
||||
Action::make('download_cv')
|
||||
->label(__('career.download_cv'))
|
||||
->icon('heroicon-o-arrow-down-tray')
|
||||
->url(fn ($record) => Storage::disk('public')->url($record->cv_path))
|
||||
->openUrlInNewTab(),
|
||||
Action::make('download_signed_form')
|
||||
->label('İmzalı Form İndir')
|
||||
->icon('heroicon-o-document-check')
|
||||
->url(fn ($record) => $record->signed_internship_form_path ? Storage::disk('public')->url($record->signed_internship_form_path) : null)
|
||||
->visible(fn ($record) => !empty($record->signed_internship_form_path))
|
||||
->openUrlInNewTab(),
|
||||
Action::make('view_certificate')
|
||||
->label('Sertifika Doğrulama')
|
||||
->icon('heroicon-o-academic-cap')
|
||||
->color('success')
|
||||
->url(fn ($record) => $record->certificate_code ? route('internship.verify', $record->certificate_code) : null)
|
||||
->visible(fn ($record) => !empty($record->certificate_code))
|
||||
->openUrlInNewTab(),
|
||||
DeleteAction::make(),
|
||||
])
|
||||
->bulkActions([
|
||||
BulkActionGroup::make([
|
||||
DeleteBulkAction::make(),
|
||||
]),
|
||||
])
|
||||
->defaultSort('created_at', 'desc');
|
||||
}
|
||||
|
||||
public static function calculateTotalDays($start, $end, Set $set): void
|
||||
{
|
||||
if (!$start || !$end) {
|
||||
$set('internship_total_days', null);
|
||||
return;
|
||||
}
|
||||
|
||||
$startDate = \Carbon\Carbon::parse($start);
|
||||
$endDate = \Carbon\Carbon::parse($end);
|
||||
|
||||
if ($startDate->gt($endDate)) {
|
||||
$set('internship_total_days', 0);
|
||||
return;
|
||||
}
|
||||
|
||||
$days = 0;
|
||||
while ($startDate->lte($endDate)) {
|
||||
if (!$startDate->isWeekend()) {
|
||||
$days++;
|
||||
}
|
||||
$startDate->addDay();
|
||||
}
|
||||
|
||||
$set('internship_total_days', $days);
|
||||
}
|
||||
|
||||
public static function calculateEndDate($start, $totalDays, Set $set): void
|
||||
{
|
||||
if (!$start || !$totalDays || $totalDays <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
$startDate = \Carbon\Carbon::parse($start);
|
||||
$daysToAdd = intval($totalDays);
|
||||
|
||||
$endDate = $startDate->copy();
|
||||
$count = 0;
|
||||
$temp = $startDate->copy();
|
||||
|
||||
while ($count < $daysToAdd) {
|
||||
if ($temp->isWeekend()) {
|
||||
$temp->addDay();
|
||||
continue;
|
||||
}
|
||||
$endDate = $temp->copy();
|
||||
$temp->addDay();
|
||||
$count++;
|
||||
}
|
||||
|
||||
$set('internship_end_date', $endDate->format('Y-m-d'));
|
||||
}
|
||||
|
||||
public static function getPages(): array
|
||||
{
|
||||
return [
|
||||
'index' => Pages\ListInternApplications::route('/'),
|
||||
'create' => Pages\CreateInternApplication::route('/create'),
|
||||
'edit' => Pages\EditInternApplication::route('/{record}/edit'),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\InternApplications\Pages;
|
||||
|
||||
use App\Filament\Admin\Resources\InternApplications\InternApplicationResource;
|
||||
use Filament\Resources\Pages\CreateRecord;
|
||||
|
||||
class CreateInternApplication extends CreateRecord
|
||||
{
|
||||
protected static string $resource = InternApplicationResource::class;
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\CareerApplications\Pages;
|
||||
namespace App\Filament\Admin\Resources\InternApplications\Pages;
|
||||
|
||||
use App\Filament\Admin\Resources\CareerApplications\CareerApplicationResource;
|
||||
use App\Filament\Admin\Resources\InternApplications\InternApplicationResource;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Resources\Pages\EditRecord;
|
||||
|
||||
class EditCareerApplication extends EditRecord
|
||||
class EditInternApplication extends EditRecord
|
||||
{
|
||||
protected static string $resource = CareerApplicationResource::class;
|
||||
protected static string $resource = InternApplicationResource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\InternApplications\Pages;
|
||||
|
||||
use App\Filament\Admin\Resources\InternApplications\InternApplicationResource;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
|
||||
class ListInternApplications extends ListRecords
|
||||
{
|
||||
protected static string $resource = InternApplicationResource::class;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
// Bu bileşen devre dışı bırakılmıştır.
|
||||
@@ -0,0 +1,218 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\JobApplications;
|
||||
|
||||
use App\Models\CareerApplication;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Tables\Table;
|
||||
use Filament\Forms\Components\FileUpload;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Forms\Components\Toggle;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
|
||||
class JobApplicationResource extends Resource
|
||||
{
|
||||
protected static ?string $model = CareerApplication::class;
|
||||
|
||||
protected static \BackedEnum|string|null $navigationIcon = 'heroicon-o-briefcase';
|
||||
|
||||
public static function getNavigationLabel(): string
|
||||
{
|
||||
return __('career.job_application_title', ['default' => 'İş Başvuruları']);
|
||||
}
|
||||
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
return __('career.job', ['default' => 'İş Başvurusu']);
|
||||
}
|
||||
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
return __('career.job_application_title', ['default' => 'İş Başvuruları']);
|
||||
}
|
||||
|
||||
public static function getEloquentQuery(): Builder
|
||||
{
|
||||
return parent::getEloquentQuery()->where('type', 'job');
|
||||
}
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
TextInput::make('name')
|
||||
->label(__('career.name'))
|
||||
->required()
|
||||
->disabled(),
|
||||
|
||||
TextInput::make('email')
|
||||
->label(__('career.email'))
|
||||
->email()
|
||||
->required()
|
||||
->disabled(),
|
||||
|
||||
TextInput::make('phone')
|
||||
->label(__('career.phone'))
|
||||
->disabled(),
|
||||
|
||||
Select::make('status')
|
||||
->label(__('career.status'))
|
||||
->options([
|
||||
'pending' => __('career.pending'),
|
||||
'reviewed' => __('career.reviewed'),
|
||||
'rejected' => __('career.rejected'),
|
||||
'accepted' => __('career.accepted'),
|
||||
'waiting_document' => __('career.waiting_document'),
|
||||
])
|
||||
->required(),
|
||||
|
||||
FileUpload::make('cv_path')
|
||||
->label(__('career.cv'))
|
||||
->disk('public')
|
||||
->directory('cvs')
|
||||
->required()
|
||||
->disabled()
|
||||
->downloadable(),
|
||||
|
||||
FileUpload::make('nda_path')
|
||||
->label(__('career.nda'))
|
||||
->disk('public')
|
||||
->directory('ndas')
|
||||
->disabled()
|
||||
->downloadable(),
|
||||
|
||||
FileUpload::make('contract_path')
|
||||
->label(__('career.contract'))
|
||||
->disk('public')
|
||||
->directory('contracts')
|
||||
->disabled()
|
||||
->downloadable(),
|
||||
|
||||
FileUpload::make('id_photocopy_path')
|
||||
->label(__('career.id_photocopy', ['default' => 'Kimlik Fotokopisi']))
|
||||
->disk('public')
|
||||
->directory('id_photocopies')
|
||||
->disabled()
|
||||
->downloadable(),
|
||||
|
||||
Toggle::make('git_knowledge')
|
||||
->label(__('career.git_knowledge'))
|
||||
->disabled(),
|
||||
|
||||
Toggle::make('ai_usage')
|
||||
->label(__('career.ai_usage'))
|
||||
->disabled(),
|
||||
|
||||
Textarea::make('message')
|
||||
->label(__('career.message'))
|
||||
->disabled()
|
||||
->columnSpanFull(),
|
||||
]);
|
||||
}
|
||||
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('name')
|
||||
->label(__('career.name'))
|
||||
->searchable()
|
||||
->sortable(),
|
||||
|
||||
TextColumn::make('email')
|
||||
->label(__('career.email'))
|
||||
->searchable()
|
||||
->sortable(),
|
||||
|
||||
TextColumn::make('phone')
|
||||
->label(__('career.phone'))
|
||||
->searchable(),
|
||||
|
||||
TextColumn::make('status')
|
||||
->label(__('career.status'))
|
||||
->badge()
|
||||
->color(fn (string $state): string => match ($state) {
|
||||
'pending' => 'gray',
|
||||
'reviewed' => 'info',
|
||||
'rejected' => 'danger',
|
||||
'accepted' => 'success',
|
||||
'waiting_document' => 'warning',
|
||||
default => 'gray',
|
||||
})
|
||||
->formatStateUsing(fn (string $state): string => __("career.{$state}")),
|
||||
|
||||
TextColumn::make('git_knowledge')
|
||||
->label(__('career.git_knowledge'))
|
||||
->badge()
|
||||
->color(fn ($state) => $state ? 'success' : 'danger')
|
||||
->formatStateUsing(fn ($state) => $state ? 'Evet' : 'Hayır'),
|
||||
|
||||
TextColumn::make('ai_usage')
|
||||
->label(__('career.ai_usage'))
|
||||
->badge()
|
||||
->color(fn ($state) => $state ? 'success' : 'danger')
|
||||
->formatStateUsing(fn ($state) => $state ? 'Evet' : 'Hayır'),
|
||||
|
||||
TextColumn::make('created_at')
|
||||
->label(__('career.created_at'))
|
||||
->dateTime('d.m.Y H:i')
|
||||
->sortable(),
|
||||
])
|
||||
->filters([
|
||||
SelectFilter::make('status')
|
||||
->label(__('career.status'))
|
||||
->options([
|
||||
'pending' => __('career.pending'),
|
||||
'reviewed' => __('career.reviewed'),
|
||||
'rejected' => __('career.rejected'),
|
||||
'accepted' => __('career.accepted'),
|
||||
'waiting_document' => __('career.waiting_document'),
|
||||
]),
|
||||
])
|
||||
->actions([
|
||||
Action::make('download_cv')
|
||||
->label(__('career.download_cv'))
|
||||
->icon('heroicon-o-arrow-down-tray')
|
||||
->url(fn ($record) => Storage::disk('public')->url($record->cv_path))
|
||||
->openUrlInNewTab(),
|
||||
Action::make('download_nda')
|
||||
->label(__('career.nda'))
|
||||
->icon('heroicon-o-shield-check')
|
||||
->url(fn ($record) => $record->nda_path ? Storage::disk('public')->url($record->nda_path) : null)
|
||||
->visible(fn ($record) => $record->nda_path !== null)
|
||||
->openUrlInNewTab(),
|
||||
Action::make('download_contract')
|
||||
->label(__('career.contract'))
|
||||
->icon('heroicon-o-document-text')
|
||||
->url(fn ($record) => $record->contract_path ? Storage::disk('public')->url($record->contract_path) : null)
|
||||
->visible(fn ($record) => $record->contract_path !== null)
|
||||
->openUrlInNewTab(),
|
||||
DeleteAction::make(),
|
||||
])
|
||||
->bulkActions([
|
||||
BulkActionGroup::make([
|
||||
DeleteBulkAction::make(),
|
||||
]),
|
||||
])
|
||||
->defaultSort('created_at', 'desc');
|
||||
}
|
||||
|
||||
public static function getPages(): array
|
||||
{
|
||||
return [
|
||||
'index' => Pages\ListJobApplications::route('/'),
|
||||
'create' => Pages\CreateJobApplication::route('/create'),
|
||||
'edit' => Pages\EditJobApplication::route('/{record}/edit'),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\JobApplications\Pages;
|
||||
|
||||
use App\Filament\Admin\Resources\JobApplications\JobApplicationResource;
|
||||
use Filament\Resources\Pages\CreateRecord;
|
||||
|
||||
class CreateJobApplication extends CreateRecord
|
||||
{
|
||||
protected static string $resource = JobApplicationResource::class;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\JobApplications\Pages;
|
||||
|
||||
use App\Filament\Admin\Resources\JobApplications\JobApplicationResource;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Resources\Pages\EditRecord;
|
||||
|
||||
class EditJobApplication extends EditRecord
|
||||
{
|
||||
protected static string $resource = JobApplicationResource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
DeleteAction::make(),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Admin\Resources\JobApplications\Pages;
|
||||
|
||||
use App\Filament\Admin\Resources\JobApplications\JobApplicationResource;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
|
||||
class ListJobApplications extends ListRecords
|
||||
{
|
||||
protected static string $resource = JobApplicationResource::class;
|
||||
}
|
||||
@@ -47,8 +47,14 @@ class BankAccountsSection
|
||||
'GBP' => 'Sterlin (£)',
|
||||
])
|
||||
->default('TRY')
|
||||
->live()
|
||||
->required(),
|
||||
|
||||
TextInput::make('swift_code')
|
||||
->label('SWIFT / BIC')
|
||||
->placeholder('Örn: TRHBTR2A')
|
||||
->required(fn (Get $get): bool => $get('currency') !== 'TRY'),
|
||||
|
||||
FileUpload::make('logo')
|
||||
->label('Banka Logosu')
|
||||
->image()
|
||||
|
||||
@@ -104,10 +104,8 @@ class LandingPageSection
|
||||
Repeater::make('landing_page_data.features')
|
||||
->label(__('products.features'))
|
||||
->schema([
|
||||
Select::make('icon')
|
||||
->label(__('products.feature_icon'))
|
||||
->options($iconOptions)
|
||||
->searchable(),
|
||||
TextInput::make('icon')
|
||||
->label(__('products.feature_icon')),
|
||||
TextInput::make('title')
|
||||
->label(__('products.feature_title'))
|
||||
->columnSpanFull(),
|
||||
|
||||
@@ -25,7 +25,6 @@ class ProductForm
|
||||
->schema([
|
||||
TextInput::make('title')
|
||||
->label(__('products.title'))
|
||||
->required()
|
||||
->live(onBlur: true)
|
||||
->afterStateUpdated(function (Get $get, Set $set, ?string $state) {
|
||||
$set('slug', Str::slug($state));
|
||||
@@ -35,15 +34,13 @@ class ProductForm
|
||||
->dehydrated(false),
|
||||
TextInput::make('slug')
|
||||
->label(__('products.slug'))
|
||||
->required()
|
||||
->unique(ignoreRecord: true),
|
||||
Select::make('type')
|
||||
->label(__('products.type'))
|
||||
->options([
|
||||
'product' => __('products.product'),
|
||||
'service' => __('products.service'),
|
||||
])
|
||||
->required(),
|
||||
]),
|
||||
Select::make('product_category_id')
|
||||
->label(__('products.category'))
|
||||
->options(function () {
|
||||
@@ -54,7 +51,6 @@ class ProductForm
|
||||
->searchable(),
|
||||
FileUpload::make('hero_image')
|
||||
->label(__('products.hero_image'))
|
||||
->required()
|
||||
->image()
|
||||
->disk('public')
|
||||
->directory('products'),
|
||||
@@ -81,7 +77,7 @@ class ProductForm
|
||||
'title' => [
|
||||
'type' => 'text',
|
||||
'label' => __('products.title'),
|
||||
'required' => true,
|
||||
'required' => false,
|
||||
],
|
||||
'content' => [
|
||||
'type' => 'richtext',
|
||||
|
||||
@@ -41,6 +41,7 @@ class CareerController extends Controller
|
||||
if ($request->type === 'job') {
|
||||
$rules['nda'] = 'required|file|mimes:pdf|max:5120';
|
||||
$rules['contract'] = 'required|file|mimes:pdf|max:5120';
|
||||
$rules['id_photocopy'] = 'required|file|mimes:pdf,jpg,jpeg,png|max:5120'; // Max 5MB
|
||||
$rules['git_knowledge'] = 'accepted';
|
||||
$rules['ai_usage'] = 'accepted';
|
||||
}
|
||||
@@ -50,6 +51,7 @@ class CareerController extends Controller
|
||||
$cvPath = $request->file('cv') ? $request->file('cv')->store('cvs', 'public') : null;
|
||||
$ndaPath = $request->file('nda') ? $request->file('nda')->store('ndas', 'public') : null;
|
||||
$contractPath = $request->file('contract') ? $request->file('contract')->store('contracts', 'public') : null;
|
||||
$idPhotocopyPath = $request->file('id_photocopy') ? $request->file('id_photocopy')->store('id_photocopies', 'public') : null;
|
||||
|
||||
CareerApplication::create([
|
||||
'name' => $request->name,
|
||||
@@ -59,6 +61,7 @@ class CareerController extends Controller
|
||||
'cv_path' => $cvPath,
|
||||
'nda_path' => $ndaPath,
|
||||
'contract_path' => $contractPath,
|
||||
'id_photocopy_path' => $idPhotocopyPath,
|
||||
'git_knowledge' => $request->has('git_knowledge'),
|
||||
'ai_usage' => $request->has('ai_usage'),
|
||||
'message' => $request->message,
|
||||
@@ -119,8 +122,13 @@ class CareerController extends Controller
|
||||
}
|
||||
|
||||
$intern = CareerApplication::findOrFail(session('intern_id'));
|
||||
$days = self::getInternshipDates($intern->internship_start_date, $intern->internship_total_days);
|
||||
$savedEntries = $intern->journalEntries()->get()->keyBy('day_number');
|
||||
|
||||
return view('front.career.intern_dashboard', [
|
||||
'intern' => $intern,
|
||||
'days' => $days,
|
||||
'savedEntries' => $savedEntries,
|
||||
'meta' => [
|
||||
'title' => 'Stajyer Paneli',
|
||||
'description' => 'Belgelerinizi buradan indirebilirsiniz.',
|
||||
@@ -128,9 +136,609 @@ class CareerController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
public function uploadInternshipForm(Request $request)
|
||||
{
|
||||
if (!session()->has('intern_id')) {
|
||||
return redirect()->route('intern.login')->with('error', 'Lütfen önce giriş yapın.');
|
||||
}
|
||||
|
||||
$request->validate([
|
||||
'internship_form' => 'required|file|mimes:pdf,docx,jpg,png,jpeg|max:51200',
|
||||
'internship_start_date' => 'required|date',
|
||||
'internship_total_days' => 'required|integer|min:1',
|
||||
], [
|
||||
'internship_form.required' => 'Lütfen bir dosya seçin.',
|
||||
'internship_form.file' => 'Yüklenen öğe geçerli bir dosya olmalıdır.',
|
||||
'internship_form.mimes' => 'Yalnızca PDF, DOCX, JPG ve PNG formatındaki dosyalar kabul edilir.',
|
||||
'internship_form.max' => 'Dosya boyutu en fazla 50MB olabilir.',
|
||||
'internship_start_date.required' => 'Lütfen staj başlangıç tarihini girin.',
|
||||
'internship_start_date.date' => 'Geçerli bir başlangıç tarihi girin.',
|
||||
'internship_total_days.required' => 'Lütfen staj süresini girin.',
|
||||
'internship_total_days.integer' => 'Staj süresi geçerli bir tam sayı olmalıdır.',
|
||||
'internship_total_days.min' => 'Staj süresi en az 1 gün olmalıdır.',
|
||||
]);
|
||||
|
||||
$intern = CareerApplication::findOrFail(session('intern_id'));
|
||||
|
||||
if ($request->hasFile('internship_form')) {
|
||||
// Delete old file if exists
|
||||
if ($intern->to_be_signed_internship_form_path) {
|
||||
Storage::disk('public')->delete($intern->to_be_signed_internship_form_path);
|
||||
}
|
||||
|
||||
$path = $request->file('internship_form')->store('to_be_signed_interns', 'public');
|
||||
|
||||
// Calculate end date based on weekdays and duration
|
||||
$startDate = \Carbon\Carbon::parse($request->internship_start_date);
|
||||
$daysToAdd = intval($request->internship_total_days);
|
||||
|
||||
$endDate = $startDate->copy();
|
||||
$count = 0;
|
||||
$temp = $startDate->copy();
|
||||
|
||||
while ($count < $daysToAdd) {
|
||||
if ($temp->isWeekend()) {
|
||||
$temp->addDay();
|
||||
continue;
|
||||
}
|
||||
$endDate = $temp->copy();
|
||||
$temp->addDay();
|
||||
$count++;
|
||||
}
|
||||
|
||||
$intern->update([
|
||||
'to_be_signed_internship_form_path' => $path,
|
||||
'internship_start_date' => $request->internship_start_date,
|
||||
'internship_end_date' => $endDate->format('Y-m-d'),
|
||||
'internship_total_days' => $daysToAdd,
|
||||
'status' => 'waiting_document',
|
||||
]);
|
||||
|
||||
return redirect()->back()->with('success', 'İmzalanacak staj formunuz ve staj tarihleri başarıyla kaydedildi.');
|
||||
}
|
||||
|
||||
return redirect()->back()->with('error', 'Dosya yüklenirken bir hata oluştu.');
|
||||
}
|
||||
|
||||
public function saveGithubRepo(Request $request)
|
||||
{
|
||||
if (!session()->has('intern_id')) {
|
||||
return redirect()->route('intern.login')->with('error', 'Lütfen önce giriş yapın.');
|
||||
}
|
||||
|
||||
$request->validate([
|
||||
'github_repo' => 'required|string|url|max:255',
|
||||
'github_username' => 'nullable|string|max:100',
|
||||
], [
|
||||
'github_repo.required' => 'Lütfen Github depo URL\'sini girin.',
|
||||
'github_repo.url' => 'Geçerli bir URL girilmelidir.',
|
||||
'github_repo.max' => 'Github depo URL\'si en fazla 255 karakter olabilir.',
|
||||
'github_username.max' => 'Github kullanıcı adı en fazla 100 karakter olabilir.',
|
||||
]);
|
||||
|
||||
$intern = CareerApplication::findOrFail(session('intern_id'));
|
||||
|
||||
// Sanitize & format github URL
|
||||
$repoUrl = trim($request->github_repo);
|
||||
$username = trim($request->github_username);
|
||||
|
||||
$intern->update([
|
||||
'github_repo' => $repoUrl,
|
||||
'github_username' => $username ?: null,
|
||||
]);
|
||||
|
||||
if ($request->expectsJson() || $request->ajax()) {
|
||||
return response()->json([
|
||||
'success' => true,
|
||||
'message' => 'Github bilgileri başarıyla güncellendi.',
|
||||
'github_repo' => $repoUrl,
|
||||
'github_username' => $username ?: null,
|
||||
]);
|
||||
}
|
||||
|
||||
return redirect()->back()->with('success', 'Github bilgileri başarıyla güncellendi.');
|
||||
}
|
||||
|
||||
public function downloadMarkdown()
|
||||
{
|
||||
if (request()->has('intern_id') && auth()->check() && auth()->user()->hasRole('super_admin')) {
|
||||
$internId = request('intern_id');
|
||||
} else {
|
||||
if (!session()->has('intern_id')) {
|
||||
return redirect()->route('intern.login')->with('error', 'Lütfen önce giriş yapın.');
|
||||
}
|
||||
$internId = session('intern_id');
|
||||
}
|
||||
|
||||
$intern = CareerApplication::findOrFail($internId);
|
||||
$repo = $intern->github_repo;
|
||||
|
||||
if (!$repo) {
|
||||
return redirect()->back()->with('error', 'Lütfen önce Github deposunu tanımlayın.');
|
||||
}
|
||||
|
||||
// Parse owner and repo
|
||||
// E.g., https://github.com/owner/repo or owner/repo
|
||||
$repoClean = str_replace(['https://github.com/', 'http://github.com/', 'https://www.github.com/', 'http://www.github.com/'], '', $repo);
|
||||
$repoClean = trim($repoClean, '/');
|
||||
$parts = explode('/', $repoClean);
|
||||
if (count($parts) < 2) {
|
||||
return redirect()->back()->with('error', 'Geçersiz Github depo formatı.');
|
||||
}
|
||||
$owner = $parts[0];
|
||||
$repoName = explode('.', $parts[1])[0]; // Remove .git if exists
|
||||
|
||||
// Fetch commits
|
||||
$url = "https://api.github.com/repos/{$owner}/{$repoName}/commits?per_page=100";
|
||||
|
||||
$opts = [
|
||||
'http' => [
|
||||
'method' => 'GET',
|
||||
'header' => [
|
||||
'User-Agent: PHP-Github-Client',
|
||||
]
|
||||
]
|
||||
];
|
||||
$context = stream_context_create($opts);
|
||||
$response = @file_get_contents($url, false, $context);
|
||||
|
||||
if ($response === false) {
|
||||
return redirect()->back()->with('error', 'Github API\'den commit bilgileri alınamadı. Deponuzun public olduğundan emin olun.');
|
||||
}
|
||||
|
||||
$commits = json_decode($response, true);
|
||||
if (!is_array($commits)) {
|
||||
return redirect()->back()->with('error', 'Github API yanıtı çözümlenemedi.');
|
||||
}
|
||||
|
||||
// Sort commits chronological (ascending)
|
||||
$commits = array_reverse($commits);
|
||||
|
||||
// Group commits by date (YYYY-MM-DD)
|
||||
$grouped = [];
|
||||
foreach ($commits as $c) {
|
||||
$dateStr = $c['commit']['author']['date'] ?? '';
|
||||
if ($dateStr) {
|
||||
$dateOnly = \Carbon\Carbon::parse($dateStr)->format('Y-m-d');
|
||||
$grouped[$dateOnly][] = $c;
|
||||
}
|
||||
}
|
||||
|
||||
// Sort dates chronological (ascending)
|
||||
ksort($grouped);
|
||||
|
||||
// Generate Markdown content
|
||||
$md = "# Staj Günlüğü - " . $intern->name . "\n";
|
||||
$md .= "Depo: https://github.com/{$owner}/{$repoName}\n\n";
|
||||
|
||||
$day = 1;
|
||||
foreach ($grouped as $date => $dayCommits) {
|
||||
$formattedDate = \Carbon\Carbon::parse($date)->format('d.m.Y');
|
||||
$md .= "## {$day}. Gün ({$formattedDate})\n";
|
||||
foreach ($dayCommits as $c) {
|
||||
$message = trim($c['commit']['message'] ?? '');
|
||||
$time = \Carbon\Carbon::parse($c['commit']['author']['date'] ?? '')->format('H:i');
|
||||
$hash = substr($c['sha'] ?? '', 0, 7);
|
||||
$md .= "- [{$time}] `{$hash}`: {$message}\n";
|
||||
}
|
||||
$md .= "\n";
|
||||
$day++;
|
||||
}
|
||||
|
||||
$fileName = str()->slug($intern->name) . "-staj-gunlugu.md";
|
||||
|
||||
return response($md, 200, [
|
||||
'Content-Type' => 'text/markdown; charset=UTF-8',
|
||||
'Content-Disposition' => 'attachment; filename="' . $fileName . '"',
|
||||
]);
|
||||
}
|
||||
|
||||
public function internLogout()
|
||||
{
|
||||
session()->forget('intern_id');
|
||||
return redirect()->route('intern.login')->with('success', 'Başarıyla çıkış yapıldı.');
|
||||
}
|
||||
|
||||
public function verifyCertificate($code)
|
||||
{
|
||||
$application = CareerApplication::where('certificate_code', $code)
|
||||
->where('type', 'internship')
|
||||
->firstOrFail();
|
||||
|
||||
$days = self::getInternshipDates($application->internship_start_date, $application->internship_total_days);
|
||||
$savedEntries = $application->journalEntries()->get()->keyBy('day_number');
|
||||
|
||||
return view('front.career.verify', [
|
||||
'application' => $application,
|
||||
'days' => $days,
|
||||
'savedEntries' => $savedEntries,
|
||||
'meta' => [
|
||||
'title' => 'Staj Bitirme Sertifikası Doğrulama - ' . $application->name,
|
||||
'description' => $application->name . ' isimli stajyerimizin staj bitirme sertifikası ve performans raporu doğrulama sayfası.',
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
||||
public function internAdminLoginForm()
|
||||
{
|
||||
if (auth()->check() && auth()->user()->hasRole('super_admin')) {
|
||||
return redirect()->route('intern.admin.dashboard');
|
||||
}
|
||||
return view('front.career.admin_login', [
|
||||
'meta' => [
|
||||
'title' => 'Yönetici Girişi - Staj Takip',
|
||||
'description' => 'Stajyerleri yönetmek için giriş yapın.',
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
||||
public function internAdminLogin(Request $request)
|
||||
{
|
||||
$request->validate([
|
||||
'email' => 'required|email',
|
||||
'password' => 'required|string',
|
||||
]);
|
||||
|
||||
if (auth()->attempt($request->only('email', 'password'))) {
|
||||
if (auth()->user()->hasRole('super_admin')) {
|
||||
return redirect()->route('intern.admin.dashboard')->with('success', 'Yönetici girişi başarıyla gerçekleştirildi.');
|
||||
}
|
||||
|
||||
auth()->logout();
|
||||
return redirect()->back()
|
||||
->withInput($request->only('email'))
|
||||
->withErrors([
|
||||
'email' => 'Bu panele erişmek için super_admin yetkinizin olması gerekir.',
|
||||
]);
|
||||
}
|
||||
|
||||
return redirect()->back()
|
||||
->withInput($request->only('email'))
|
||||
->withErrors([
|
||||
'email' => 'Girdiğiniz bilgiler eşleşmedi veya hatalı.',
|
||||
]);
|
||||
}
|
||||
|
||||
public function internAdminDashboard()
|
||||
{
|
||||
if (!auth()->check() || !auth()->user()->hasRole('super_admin')) {
|
||||
return redirect()->route('intern.admin.login')->with('error', 'Lütfen önce yönetici olarak giriş yapın.');
|
||||
}
|
||||
|
||||
$allInterns = CareerApplication::where('type', 'internship')
|
||||
->with(['journalEntries'])
|
||||
->orderBy('created_at', 'desc')
|
||||
->get();
|
||||
|
||||
$ganttInterns = CareerApplication::where('type', 'internship')
|
||||
->where('status', 'accepted')
|
||||
->whereNotNull('internship_start_date')
|
||||
->whereNotNull('internship_end_date')
|
||||
->orderBy('internship_start_date', 'asc')
|
||||
->get()
|
||||
->map(function ($intern) {
|
||||
return [
|
||||
'id' => $intern->id,
|
||||
'parentId' => null,
|
||||
'title' => $intern->name,
|
||||
'start' => $intern->internship_start_date,
|
||||
'end' => $intern->internship_end_date,
|
||||
'progress' => 100
|
||||
];
|
||||
});
|
||||
|
||||
return view('front.career.admin_dashboard', [
|
||||
'allInterns' => $allInterns,
|
||||
'ganttInterns' => $ganttInterns,
|
||||
'meta' => [
|
||||
'title' => 'Staj Yönetici Paneli',
|
||||
'description' => 'Stajyer bilgilerini ve takvimlerini izleyin.',
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
||||
public function internAdminLogout()
|
||||
{
|
||||
auth()->logout();
|
||||
return redirect()->route('intern.admin.login')->with('success', 'Yönetici oturumu sonlandırıldı.');
|
||||
}
|
||||
|
||||
public static function getInternshipDates($startDate, $totalDays)
|
||||
{
|
||||
if (!$startDate || !$totalDays || $totalDays <= 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$dates = [];
|
||||
$temp = \Carbon\Carbon::parse($startDate);
|
||||
$daysToAdd = intval($totalDays);
|
||||
$count = 0;
|
||||
|
||||
while ($count < $daysToAdd) {
|
||||
if ($temp->isWeekend()) {
|
||||
$temp->addDay();
|
||||
continue;
|
||||
}
|
||||
$dates[] = [
|
||||
'day_number' => $count + 1,
|
||||
'date' => $temp->format('Y-m-d'),
|
||||
'formatted_date' => $temp->format('d.m.Y'),
|
||||
];
|
||||
$temp->addDay();
|
||||
$count++;
|
||||
}
|
||||
|
||||
return $dates;
|
||||
}
|
||||
|
||||
public function saveJournalEntry(Request $request)
|
||||
{
|
||||
if (!session()->has('intern_id')) {
|
||||
return response()->json(['success' => false, 'message' => 'Lütfen giriş yapın.'], 401);
|
||||
}
|
||||
|
||||
$intern = CareerApplication::findOrFail(session('intern_id'));
|
||||
|
||||
$request->validate([
|
||||
'day_number' => 'required|integer|min:1',
|
||||
'date' => 'required|date',
|
||||
'content' => 'nullable|string',
|
||||
]);
|
||||
|
||||
$dateObj = \Carbon\Carbon::parse($request->date);
|
||||
|
||||
// 1. Prevent future entries
|
||||
if ($dateObj->isFuture()) {
|
||||
return response()->json(['success' => false, 'message' => 'İleriye dönük staj günleri için defter doldurulamaz.'], 422);
|
||||
}
|
||||
|
||||
// 2. Prevent weekend entries
|
||||
if ($dateObj->isWeekend()) {
|
||||
return response()->json(['success' => false, 'message' => 'Hafta sonu günlerine staj günlüğü girilemez.'], 422);
|
||||
}
|
||||
|
||||
// 3. Determine if retroactive
|
||||
$isRetroactive = $dateObj->lt(\Carbon\Carbon::today());
|
||||
|
||||
$entry = \App\Models\InternshipJournalEntry::updateOrCreate([
|
||||
'career_application_id' => $intern->id,
|
||||
'day_number' => $request->day_number,
|
||||
'date' => $request->date,
|
||||
], [
|
||||
'content' => $request->content,
|
||||
'is_retroactive' => $isRetroactive,
|
||||
'supervisor_approved' => false,
|
||||
'supervisor_name' => null,
|
||||
]);
|
||||
|
||||
return response()->json([
|
||||
'success' => true,
|
||||
'message' => $request->day_number . '. Gün kaydı başarıyla kaydedildi.' . ($isRetroactive ? ' (Geriye Dönük Kayıt)' : ''),
|
||||
'entry' => $entry
|
||||
]);
|
||||
}
|
||||
|
||||
public function printJournal(Request $request)
|
||||
{
|
||||
if (request()->has('intern_id') && auth()->check() && auth()->user()->hasRole('super_admin')) {
|
||||
$internId = request('intern_id');
|
||||
} else {
|
||||
if (!session()->has('intern_id')) {
|
||||
return redirect()->route('intern.login')->with('error', 'Lütfen önce giriş yapın.');
|
||||
}
|
||||
$internId = session('intern_id');
|
||||
}
|
||||
|
||||
$intern = CareerApplication::findOrFail($internId);
|
||||
$size = $request->query('size', 'a4');
|
||||
if (!in_array($size, ['a4', 'a5'])) {
|
||||
$size = 'a4';
|
||||
}
|
||||
|
||||
$days = self::getInternshipDates($intern->internship_start_date, $intern->internship_total_days);
|
||||
|
||||
$dayFilter = $request->query('day');
|
||||
if ($dayFilter) {
|
||||
$days = array_filter($days, function($d) use ($dayFilter) {
|
||||
return $d['day_number'] == $dayFilter;
|
||||
});
|
||||
$days = array_values($days);
|
||||
}
|
||||
|
||||
$savedEntries = $intern->journalEntries()->get()->keyBy('day_number');
|
||||
|
||||
return view('front.career.print', [
|
||||
'intern' => $intern,
|
||||
'days' => $days,
|
||||
'savedEntries' => $savedEntries,
|
||||
'size' => $size,
|
||||
]);
|
||||
}
|
||||
|
||||
public function getJournalEntry(Request $request)
|
||||
{
|
||||
if (!auth()->check()) {
|
||||
return response()->json(['success' => false, 'message' => 'Yetkisiz işlem.'], 403);
|
||||
}
|
||||
|
||||
$request->validate([
|
||||
'intern_id' => 'required|integer|exists:career_applications,id',
|
||||
'date' => 'required|date',
|
||||
]);
|
||||
|
||||
$intern = \App\Models\CareerApplication::findOrFail($request->intern_id);
|
||||
|
||||
$days = self::getInternshipDates($intern->internship_start_date, $intern->internship_total_days);
|
||||
$dayNum = null;
|
||||
$dateFormatted = null;
|
||||
foreach ($days as $d) {
|
||||
if ($d['date'] === $request->date) {
|
||||
$dayNum = $d['day_number'];
|
||||
$dateFormatted = $d['formatted_date'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!$dayNum) {
|
||||
return response()->json([
|
||||
'success' => false,
|
||||
'message' => 'Seçilen tarih staj dönemi dışındadır veya haftasonudur.'
|
||||
], 422);
|
||||
}
|
||||
|
||||
$entry = $intern->journalEntries()->where('date', $request->date)->first();
|
||||
|
||||
return response()->json([
|
||||
'success' => true,
|
||||
'intern_name' => $intern->name,
|
||||
'day_number' => $dayNum,
|
||||
'date' => $request->date,
|
||||
'date_formatted' => $dateFormatted,
|
||||
'entry' => $entry ? [
|
||||
'id' => $entry->id,
|
||||
'content' => $entry->content,
|
||||
'is_retroactive' => $entry->is_retroactive,
|
||||
'supervisor_approved' => $entry->supervisor_approved,
|
||||
'supervisor_name' => $entry->supervisor_name,
|
||||
] : null
|
||||
]);
|
||||
}
|
||||
|
||||
public function toggleJournalApproval(Request $request)
|
||||
{
|
||||
if (!auth()->check()) {
|
||||
return response()->json(['success' => false, 'message' => 'Yetkisiz işlem.'], 403);
|
||||
}
|
||||
|
||||
$request->validate([
|
||||
'entry_id' => 'required|integer|exists:internship_journal_entries,id',
|
||||
]);
|
||||
|
||||
$entry = \App\Models\InternshipJournalEntry::findOrFail($request->entry_id);
|
||||
|
||||
$entry->supervisor_approved = !$entry->supervisor_approved;
|
||||
if ($entry->supervisor_approved) {
|
||||
$entry->supervisor_name = auth()->user()->name;
|
||||
} else {
|
||||
$entry->supervisor_name = null;
|
||||
}
|
||||
$entry->save();
|
||||
|
||||
return response()->json([
|
||||
'success' => true,
|
||||
'status' => $entry->supervisor_approved,
|
||||
'supervisor_name' => $entry->supervisor_name,
|
||||
'message' => 'Staj sorumlusu onayı güncellendi.'
|
||||
]);
|
||||
}
|
||||
|
||||
public function getInternJournalDetails(Request $request)
|
||||
{
|
||||
if (!auth()->check()) {
|
||||
return response()->json(['success' => false, 'message' => 'Yetkisiz işlem.'], 403);
|
||||
}
|
||||
|
||||
$request->validate([
|
||||
'intern_id' => 'required|integer|exists:career_applications,id',
|
||||
]);
|
||||
|
||||
$intern = CareerApplication::findOrFail($request->intern_id);
|
||||
|
||||
// Get all days calculated
|
||||
$days = self::getInternshipDates($intern->internship_start_date, $intern->internship_total_days);
|
||||
|
||||
// Get saved journal entries
|
||||
$savedEntries = $intern->journalEntries()->get()->keyBy('day_number');
|
||||
|
||||
// Prepare entries list matched by day number
|
||||
$entries = [];
|
||||
$filledDaysCount = 0;
|
||||
|
||||
foreach ($days as $d) {
|
||||
$dayNum = $d['day_number'];
|
||||
$entry = $savedEntries->get($dayNum);
|
||||
|
||||
$hasSaved = $entry && trim($entry->content) !== '';
|
||||
if ($hasSaved) {
|
||||
$filledDaysCount++;
|
||||
}
|
||||
|
||||
$entries[] = [
|
||||
'day_number' => $dayNum,
|
||||
'date' => $d['date'],
|
||||
'formatted_date' => $d['formatted_date'],
|
||||
'filled' => $hasSaved,
|
||||
'entry_id' => $entry ? $entry->id : null,
|
||||
'content' => $entry ? $entry->content : null,
|
||||
'is_retroactive' => $entry ? $entry->is_retroactive : false,
|
||||
'supervisor_approved' => $entry ? (bool)$entry->supervisor_approved : false,
|
||||
'supervisor_name' => $entry ? $entry->supervisor_name : null,
|
||||
];
|
||||
}
|
||||
|
||||
return response()->json([
|
||||
'success' => true,
|
||||
'intern' => [
|
||||
'id' => $intern->id,
|
||||
'name' => $intern->name,
|
||||
'email' => $intern->email,
|
||||
'phone' => $intern->phone,
|
||||
'start_date' => $intern->internship_start_date,
|
||||
'end_date' => $intern->internship_end_date,
|
||||
'total_days' => $intern->internship_total_days,
|
||||
'filled_days' => $filledDaysCount,
|
||||
'notebook_supervisor_signed' => (bool)$intern->notebook_supervisor_signed,
|
||||
'notebook_supervisor_name' => $intern->notebook_supervisor_name,
|
||||
'notebook_unit_signed' => (bool)$intern->notebook_unit_signed,
|
||||
'notebook_unit_name' => $intern->notebook_unit_name,
|
||||
'notebook_approved' => (bool)$intern->notebook_approved,
|
||||
],
|
||||
'entries' => $entries,
|
||||
]);
|
||||
}
|
||||
|
||||
public function toggleNotebookSignature(Request $request)
|
||||
{
|
||||
if (!auth()->check()) {
|
||||
return response()->json(['success' => false, 'message' => 'Yetkisiz işlem.'], 403);
|
||||
}
|
||||
|
||||
$request->validate([
|
||||
'intern_id' => 'required|integer|exists:career_applications,id',
|
||||
'type' => 'required|string|in:supervisor,unit,approved',
|
||||
'signed' => 'required|boolean',
|
||||
'name' => 'nullable|string|max:255',
|
||||
]);
|
||||
|
||||
$intern = CareerApplication::findOrFail($request->intern_id);
|
||||
|
||||
$type = $request->type;
|
||||
$signed = $request->signed;
|
||||
$name = $request->name ?: auth()->user()->name;
|
||||
|
||||
if ($type === 'supervisor') {
|
||||
$intern->notebook_supervisor_signed = $signed;
|
||||
$intern->notebook_supervisor_name = $signed ? $name : null;
|
||||
} elseif ($type === 'unit') {
|
||||
$intern->notebook_unit_signed = $signed;
|
||||
$intern->notebook_unit_name = $signed ? $name : null;
|
||||
} elseif ($type === 'approved') {
|
||||
$intern->notebook_approved = $signed;
|
||||
}
|
||||
|
||||
$intern->save();
|
||||
|
||||
return response()->json([
|
||||
'success' => true,
|
||||
'message' => 'Staj defteri onay durumu güncellendi.',
|
||||
'intern' => [
|
||||
'notebook_supervisor_signed' => (bool)$intern->notebook_supervisor_signed,
|
||||
'notebook_supervisor_name' => $intern->notebook_supervisor_name,
|
||||
'notebook_unit_signed' => (bool)$intern->notebook_unit_signed,
|
||||
'notebook_unit_name' => $intern->notebook_unit_name,
|
||||
'notebook_approved' => (bool)$intern->notebook_approved,
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -71,13 +71,14 @@ class PageController extends Controller
|
||||
return $this->handleShow('truncgil-akademi');
|
||||
}
|
||||
|
||||
/**
|
||||
* Unified show logic
|
||||
*/
|
||||
protected function handleShow($slug)
|
||||
{
|
||||
$settings = $this->getSettings();
|
||||
|
||||
if ($slug === 'akademi') {
|
||||
$slug = 'truncgil-akademi';
|
||||
}
|
||||
|
||||
// Redirection logic disabled for rendering the page locally on main domain.
|
||||
|
||||
// 1. Statik View Kontrolü
|
||||
|
||||
@@ -12,24 +12,50 @@ class SitemapController extends Controller
|
||||
public function index(): Response
|
||||
{
|
||||
$urls = [];
|
||||
$activeLanguages = [];
|
||||
if (class_exists(\App\Models\Language::class)) {
|
||||
$activeLanguages = \App\Models\Language::where('is_active', true)->get();
|
||||
}
|
||||
|
||||
$getAlternates = function (string $baseUrl) use ($activeLanguages) {
|
||||
$alternates = [];
|
||||
foreach ($activeLanguages as $lang) {
|
||||
$connector = str_contains($baseUrl, '?') ? '&' : '?';
|
||||
$alternates[] = [
|
||||
'hreflang' => $lang->code,
|
||||
'href' => $baseUrl . $connector . 'locale=' . $lang->code,
|
||||
];
|
||||
}
|
||||
$alternates[] = [
|
||||
'hreflang' => 'x-default',
|
||||
'href' => $baseUrl,
|
||||
];
|
||||
return $alternates;
|
||||
};
|
||||
|
||||
// 1. Static & Main Pages
|
||||
$homeUrl = url('/');
|
||||
$urls[] = [
|
||||
'loc' => url('/'),
|
||||
'loc' => $homeUrl,
|
||||
'alternates' => $getAlternates($homeUrl),
|
||||
'lastmod' => now()->startOfDay()->toAtomString(),
|
||||
'changefreq' => 'daily',
|
||||
'priority' => '1.0',
|
||||
];
|
||||
|
||||
$blogIndexUrl = route('blog.index');
|
||||
$urls[] = [
|
||||
'loc' => route('blog.index'),
|
||||
'loc' => $blogIndexUrl,
|
||||
'alternates' => $getAlternates($blogIndexUrl),
|
||||
'lastmod' => now()->startOfDay()->toAtomString(),
|
||||
'changefreq' => 'weekly',
|
||||
'priority' => '0.8',
|
||||
];
|
||||
|
||||
$careerIndexUrl = route('career.index');
|
||||
$urls[] = [
|
||||
'loc' => route('career.index'),
|
||||
'loc' => $careerIndexUrl,
|
||||
'alternates' => $getAlternates($careerIndexUrl),
|
||||
'lastmod' => now()->startOfMonth()->toAtomString(),
|
||||
'changefreq' => 'monthly',
|
||||
'priority' => '0.5',
|
||||
@@ -40,8 +66,10 @@ class SitemapController extends Controller
|
||||
->where('is_homepage', false)
|
||||
->get();
|
||||
foreach ($pages as $page) {
|
||||
$pageUrl = url($page->slug);
|
||||
$urls[] = [
|
||||
'loc' => url($page->slug),
|
||||
'loc' => $pageUrl,
|
||||
'alternates' => $getAlternates($pageUrl),
|
||||
'lastmod' => $page->updated_at->toAtomString(),
|
||||
'changefreq' => 'weekly',
|
||||
'priority' => '0.7',
|
||||
@@ -52,8 +80,10 @@ class SitemapController extends Controller
|
||||
if (class_exists(Blog::class)) {
|
||||
$posts = Blog::published()->get();
|
||||
foreach ($posts as $post) {
|
||||
$postUrl = route('blog.show', $post->slug);
|
||||
$urls[] = [
|
||||
'loc' => route('blog.show', $post->slug),
|
||||
'loc' => $postUrl,
|
||||
'alternates' => $getAlternates($postUrl),
|
||||
'lastmod' => $post->updated_at->toAtomString(),
|
||||
'changefreq' => 'weekly',
|
||||
'priority' => '0.6',
|
||||
@@ -65,8 +95,10 @@ class SitemapController extends Controller
|
||||
if (class_exists(Product::class)) {
|
||||
$products = Product::where('is_active', true)->get();
|
||||
foreach ($products as $product) {
|
||||
$productUrl = route('products.show', $product->slug);
|
||||
$urls[] = [
|
||||
'loc' => route('products.show', $product->slug),
|
||||
'loc' => $productUrl,
|
||||
'alternates' => $getAlternates($productUrl),
|
||||
'lastmod' => $product->updated_at->toAtomString(),
|
||||
'changefreq' => 'weekly',
|
||||
'priority' => '0.7',
|
||||
|
||||
@@ -16,10 +16,25 @@ class SetLocale
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): Response
|
||||
{
|
||||
// Session'dan locale'i al, yoksa varsayılan dil kodunu kullan
|
||||
$locale = session('locale');
|
||||
// Aktif dilleri veritabanından kontrol et
|
||||
if (function_exists('available_language_codes')) {
|
||||
$availableLocales = available_language_codes();
|
||||
} else {
|
||||
$availableLocales = ['tr', 'en', 'de', 'ar', 'se', 'ru'];
|
||||
}
|
||||
|
||||
// Query parametresinden al, yoksa session'dan al
|
||||
$queryLocale = $request->query('locale') ?? $request->query('lang');
|
||||
$locale = null;
|
||||
|
||||
if ($queryLocale && in_array($queryLocale, $availableLocales)) {
|
||||
$locale = $queryLocale;
|
||||
session(['locale' => $locale]);
|
||||
} else {
|
||||
$locale = session('locale');
|
||||
}
|
||||
|
||||
// Eğer session'da locale yoksa, varsayılan dil kodunu kullan
|
||||
// Eğer locale hala atanmadıysa varsayılan dil kodunu kullan
|
||||
if (!$locale) {
|
||||
if (function_exists('default_language_code')) {
|
||||
$locale = default_language_code();
|
||||
@@ -28,14 +43,7 @@ class SetLocale
|
||||
}
|
||||
}
|
||||
|
||||
// Aktif dilleri veritabanından kontrol et
|
||||
if (function_exists('available_language_codes')) {
|
||||
$availableLocales = available_language_codes();
|
||||
} else {
|
||||
$availableLocales = ['tr', 'en'];
|
||||
}
|
||||
|
||||
// Locale'i aktif diller arasında kontrol et
|
||||
// Locale'i aktif diller arasında kontrol et ve ata
|
||||
if (in_array($locale, $availableLocales)) {
|
||||
App::setLocale($locale);
|
||||
} else {
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire;
|
||||
|
||||
use Livewire\Component;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class InternJournalTimeline extends Component
|
||||
{
|
||||
public ?Model $record = null;
|
||||
|
||||
public function getGithubRepoProperty(): ?string
|
||||
{
|
||||
return $this->record?->github_repo;
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.intern-journal-timeline');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Traits\HasTranslations;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class Award extends Model
|
||||
{
|
||||
use HasFactory, SoftDeletes, HasTranslations;
|
||||
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'description',
|
||||
'issuer',
|
||||
'award_date',
|
||||
'image',
|
||||
'external_link',
|
||||
'is_featured',
|
||||
'is_active',
|
||||
'sort_order',
|
||||
'category',
|
||||
];
|
||||
|
||||
/**
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $translatable = [
|
||||
'title',
|
||||
'description',
|
||||
'issuer',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'award_date' => 'date',
|
||||
'is_featured' => 'boolean',
|
||||
'is_active' => 'boolean',
|
||||
'sort_order' => 'integer',
|
||||
];
|
||||
|
||||
public function scopeActive($query)
|
||||
{
|
||||
return $query->where('is_active', true);
|
||||
}
|
||||
|
||||
public function scopeFeatured($query)
|
||||
{
|
||||
return $query->where('is_featured', true);
|
||||
}
|
||||
|
||||
public function scopeOrdered($query)
|
||||
{
|
||||
return $query
|
||||
->orderBy('sort_order', 'asc')
|
||||
->orderBy('award_date', 'desc');
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,7 @@ class CareerApplication extends Model
|
||||
'cv_path',
|
||||
'nda_path',
|
||||
'contract_path',
|
||||
'id_photocopy_path',
|
||||
'git_knowledge',
|
||||
'ai_usage',
|
||||
'message',
|
||||
@@ -24,8 +25,44 @@ class CareerApplication extends Model
|
||||
'username',
|
||||
'password',
|
||||
'signed_internship_form_path',
|
||||
'to_be_signed_internship_form_path',
|
||||
'internship_start_date',
|
||||
'internship_end_date',
|
||||
'internship_total_days',
|
||||
'github_repo',
|
||||
'github_username',
|
||||
'certificate_code',
|
||||
'transcript_markdown',
|
||||
'notebook_supervisor_signed',
|
||||
'notebook_supervisor_name',
|
||||
'notebook_unit_signed',
|
||||
'notebook_unit_name',
|
||||
'notebook_approved',
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the journal entries for the internship application.
|
||||
*/
|
||||
public function journalEntries()
|
||||
{
|
||||
return $this->hasMany(InternshipJournalEntry::class);
|
||||
}
|
||||
|
||||
protected static function booted()
|
||||
{
|
||||
static::saving(function ($model) {
|
||||
if ($model->type === 'internship') {
|
||||
$model->username = $model->email;
|
||||
if (!$model->certificate_code) {
|
||||
do {
|
||||
$code = 'TRN-' . date('Y') . '-' . strtoupper(\Illuminate\Support\Str::random(4)) . '-' . strtoupper(\Illuminate\Support\Str::random(4));
|
||||
} while (static::where('certificate_code', $code)->exists());
|
||||
$model->certificate_code = $code;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the attributes that should be cast.
|
||||
*
|
||||
@@ -35,6 +72,9 @@ class CareerApplication extends Model
|
||||
{
|
||||
return [
|
||||
'password' => 'hashed',
|
||||
'notebook_supervisor_signed' => 'boolean',
|
||||
'notebook_unit_signed' => 'boolean',
|
||||
'notebook_approved' => 'boolean',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class InternshipJournalEntry extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'career_application_id',
|
||||
'day_number',
|
||||
'date',
|
||||
'content',
|
||||
'is_retroactive',
|
||||
'supervisor_approved',
|
||||
'unit_approved',
|
||||
'supervisor_name',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'is_retroactive' => 'boolean',
|
||||
'supervisor_approved' => 'boolean',
|
||||
'unit_approved' => 'boolean',
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the career application that owns this journal entry.
|
||||
*/
|
||||
public function careerApplication()
|
||||
{
|
||||
return $this->belongsTo(CareerApplication::class);
|
||||
}
|
||||
}
|
||||
@@ -75,17 +75,115 @@ class Setting extends Model
|
||||
$this->attributes['value'] = $value ? '1' : '0';
|
||||
}
|
||||
|
||||
/**
|
||||
* Set value from different field names
|
||||
*/
|
||||
public function setValueFileAttribute($value)
|
||||
{
|
||||
// Filament bazen dosya yolunu array olarak döndürebilir, bu durumda ilk elemanı alıyoruz
|
||||
if (is_array($value)) {
|
||||
$this->attributes['value'] = array_values($value)[0] ?? null;
|
||||
$filePath = array_values($value)[0] ?? null;
|
||||
} else {
|
||||
$this->attributes['value'] = $value;
|
||||
$filePath = $value;
|
||||
}
|
||||
|
||||
if ($filePath && $this->key === 'hero_bg') {
|
||||
$filePath = $this->processHeroBackground($filePath);
|
||||
}
|
||||
|
||||
$this->attributes['value'] = $filePath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Process the hero background image: convert to webp, resize if necessary, and compress.
|
||||
*/
|
||||
protected function processHeroBackground($filePath)
|
||||
{
|
||||
try {
|
||||
$disk = \Illuminate\Support\Facades\Storage::disk('public');
|
||||
if (!$disk->exists($filePath)) {
|
||||
return $filePath;
|
||||
}
|
||||
|
||||
$absolutePath = $disk->path($filePath);
|
||||
|
||||
// Get image info
|
||||
$imageInfo = @getimagesize($absolutePath);
|
||||
if (!$imageInfo) {
|
||||
return $filePath;
|
||||
}
|
||||
|
||||
$mimeType = $imageInfo['mime'];
|
||||
|
||||
// Create GD image resource based on mime type
|
||||
switch ($mimeType) {
|
||||
case 'image/jpeg':
|
||||
case 'image/jpg':
|
||||
$image = @imagecreatefromjpeg($absolutePath);
|
||||
break;
|
||||
case 'image/png':
|
||||
$image = @imagecreatefrompng($absolutePath);
|
||||
break;
|
||||
case 'image/webp':
|
||||
$image = @imagecreatefromwebp($absolutePath);
|
||||
break;
|
||||
case 'image/gif':
|
||||
$image = @imagecreatefromgif($absolutePath);
|
||||
break;
|
||||
default:
|
||||
return $filePath;
|
||||
}
|
||||
|
||||
if (!$image) {
|
||||
return $filePath;
|
||||
}
|
||||
|
||||
// Preserve transparency or handle it for webp if needed
|
||||
imagealphablending($image, true);
|
||||
imagesavealpha($image, true);
|
||||
|
||||
$originalWidth = imagesx($image);
|
||||
$originalHeight = imagesy($image);
|
||||
|
||||
// Target dimensions: Hero bg size, max width 1920px
|
||||
$maxWidth = 1920;
|
||||
if ($originalWidth > $maxWidth) {
|
||||
$newWidth = $maxWidth;
|
||||
$newHeight = (int) (($originalHeight / $originalWidth) * $maxWidth);
|
||||
|
||||
$resizedImage = imagecreatetruecolor($newWidth, $newHeight);
|
||||
|
||||
// Preserve transparency
|
||||
imagealphablending($resizedImage, false);
|
||||
imagesavealpha($resizedImage, true);
|
||||
|
||||
// Resize
|
||||
imagecopyresampled($resizedImage, $image, 0, 0, 0, 0, $newWidth, $newHeight, $originalWidth, $originalHeight);
|
||||
imagedestroy($image);
|
||||
$image = $resizedImage;
|
||||
}
|
||||
|
||||
// Generate new webp path
|
||||
$pathInfo = pathinfo($filePath);
|
||||
$newWebpPath = $pathInfo['dirname'] . '/' . $pathInfo['filename'] . '.webp';
|
||||
$absoluteWebpPath = $disk->path($newWebpPath);
|
||||
|
||||
// Save as webp with 80% quality (excellent quality-to-size ratio)
|
||||
if (imagewebp($image, $absoluteWebpPath, 80)) {
|
||||
imagedestroy($image);
|
||||
|
||||
// If the file extension changed, delete the original file
|
||||
if ($newWebpPath !== $filePath) {
|
||||
$disk->delete($filePath);
|
||||
}
|
||||
|
||||
return $newWebpPath;
|
||||
}
|
||||
|
||||
imagedestroy($image);
|
||||
} catch (\Exception $e) {
|
||||
// Log error or fallback to original
|
||||
\Illuminate\Support\Facades\Log::error('Hero background image processing failed: ' . $e->getMessage());
|
||||
}
|
||||
|
||||
return $filePath;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -85,6 +85,13 @@ class AdminPanelProvider extends PanelProvider
|
||||
->sort(100); // En sonda görünsün
|
||||
})->toArray()
|
||||
])
|
||||
->navigationItems([
|
||||
\Filament\Navigation\NavigationItem::make('Admin Stajyer Paneli')
|
||||
->url('https://truncgil.com/stajyer/admin/panel')
|
||||
->openUrlInNewTab()
|
||||
->icon('heroicon-o-academic-cap')
|
||||
->sort(1000),
|
||||
])
|
||||
->assets([
|
||||
\Filament\Support\Assets\Css::make('citrus', resource_path('css/citrus.css')),
|
||||
]);
|
||||
|
||||
@@ -360,19 +360,48 @@ class YouTubeService
|
||||
$response = Http::timeout(30)->get($imageUrl);
|
||||
|
||||
if ($response->failed()) {
|
||||
Log::warning('YouTube cover image fetch HTTP request failed', [
|
||||
'video_id' => $videoId,
|
||||
'url' => $imageUrl,
|
||||
'status' => $response->status(),
|
||||
]);
|
||||
return null;
|
||||
}
|
||||
|
||||
$extension = $this->guessImageExtension($response->header('Content-Type'));
|
||||
$path = 'music-productions/covers/youtube-' . $videoId . '.' . $extension;
|
||||
|
||||
Storage::disk('public')->put($path, $response->body());
|
||||
$absolutePath = Storage::disk('public')->path($path);
|
||||
$directory = dirname($absolutePath);
|
||||
|
||||
if (!is_dir($directory)) {
|
||||
@mkdir($directory, 0775, true);
|
||||
}
|
||||
|
||||
if (is_dir($directory) && !is_writable($directory)) {
|
||||
Log::error('YouTube cover directory is not writable. Check folder ownership and permissions.', [
|
||||
'directory' => $directory,
|
||||
'owner' => function_exists('posix_getpwuid') ? posix_getpwuid(fileowner($directory))['name'] : fileowner($directory),
|
||||
'perms' => substr(sprintf('%o', fileperms($directory)), -4),
|
||||
]);
|
||||
}
|
||||
|
||||
$stored = Storage::disk('public')->put($path, $response->body());
|
||||
|
||||
if (!$stored) {
|
||||
Log::error('Failed to store YouTube cover image via storage disk.', [
|
||||
'path' => $path,
|
||||
'video_id' => $videoId,
|
||||
]);
|
||||
return null;
|
||||
}
|
||||
|
||||
return $path;
|
||||
} catch (\Throwable $exception) {
|
||||
Log::warning('YouTube cover download failed', [
|
||||
Log::error('YouTube cover download failed with exception', [
|
||||
'video_id' => $videoId,
|
||||
'message' => $exception->getMessage(),
|
||||
'trace' => $exception->getTraceAsString(),
|
||||
]);
|
||||
|
||||
return null;
|
||||
|
||||
@@ -110,6 +110,7 @@ class PageTemplateHero
|
||||
'corporate.partners' => 'Çözüm Ortaklarımız (Kurumsal)',
|
||||
'corporate.bank-accounts' => 'Banka Bilgilerimiz (Kurumsal)',
|
||||
'corporate.online-payment' => 'Online Ödeme (Kurumsal)',
|
||||
'corporate.imprint' => 'Künye (Kurumsal)',
|
||||
];
|
||||
|
||||
$fromConfig = collect(config('page_templates.labels', []))
|
||||
|
||||
@@ -63,10 +63,42 @@ abstract class StructuredData
|
||||
$siteName = static::siteName();
|
||||
|
||||
$node = [
|
||||
'@type' => 'Organization',
|
||||
'@type' => 'ProfessionalService',
|
||||
'@id' => $siteUrl . '#organization',
|
||||
'name' => $siteName,
|
||||
'url' => $siteUrl,
|
||||
'priceRange' => '$$',
|
||||
'geo' => [
|
||||
'@type' => 'GeoCoordinates',
|
||||
'latitude' => 37.025704,
|
||||
'longitude' => 37.296559,
|
||||
],
|
||||
'areaServed' => [
|
||||
[
|
||||
'@type' => 'AdministrativeArea',
|
||||
'name' => 'Gaziantep',
|
||||
],
|
||||
[
|
||||
'@type' => 'Country',
|
||||
'name' => 'Turkey',
|
||||
]
|
||||
],
|
||||
'knowsAbout' => [
|
||||
'Yazılım Geliştirme',
|
||||
'Web Tasarım',
|
||||
'Mobil Uygulama Geliştirme',
|
||||
'E-Ticaret Sistemleri',
|
||||
'SEO Danışmanlığı',
|
||||
'Gaziantep Yazılım Şirketleri'
|
||||
],
|
||||
'openingHoursSpecification' => [
|
||||
[
|
||||
'@type' => 'OpeningHoursSpecification',
|
||||
'dayOfWeek' => ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],
|
||||
'opens' => '09:00',
|
||||
'closes' => '18:00',
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
$logo = setting('site_logo');
|
||||
@@ -93,6 +125,10 @@ abstract class StructuredData
|
||||
$node['address'] = [
|
||||
'@type' => 'PostalAddress',
|
||||
'streetAddress' => $address,
|
||||
'addressLocality' => 'Şahinbey',
|
||||
'addressRegion' => 'Gaziantep',
|
||||
'postalCode' => '27190',
|
||||
'addressCountry' => 'TR',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -128,5 +128,96 @@ return [
|
||||
'ar' => 'يمكنكم إضافة حساباتكم البنكية من لوحة الإدارة.',
|
||||
'ru' => 'Вы можете добавить банковские счета из панели администратора.',
|
||||
],
|
||||
'Künye' => [
|
||||
'en' => 'Imprint',
|
||||
'de' => 'Impressum',
|
||||
'se' => 'Imprint',
|
||||
'ar' => 'البيانات القانونية',
|
||||
'ru' => 'Юридическая информация',
|
||||
],
|
||||
'Resmi şirket bilgileri ve yasal sorumluluklar.' => [
|
||||
'en' => 'Official company information and legal responsibilities.',
|
||||
'de' => 'Offizielle Firmeninformationen und rechtliche Verantwortung.',
|
||||
'se' => 'Officiell företagsinformation och juridiskt ansvar.',
|
||||
'ar' => 'معلومات الشركة الرسمية والمسؤوليات القانونية.',
|
||||
'ru' => 'Официальная информация о компании и юридическая ответственность.',
|
||||
],
|
||||
'Yasal Künye Bilgileri' => [
|
||||
'en' => 'Legal Imprint Details',
|
||||
'de' => 'Rechtliche Angaben (Impressum)',
|
||||
'se' => 'Juridisk information',
|
||||
'ar' => 'تفاصيل البيانات القانونية',
|
||||
'ru' => 'Юридические выходные данные',
|
||||
],
|
||||
'Ticaret Sicil No' => [
|
||||
'en' => 'Trade Registry No',
|
||||
'de' => 'Handelsregisternummer',
|
||||
'se' => 'Organisationsnummer',
|
||||
'ar' => 'رقم السجل التجاري',
|
||||
'ru' => 'Регистрационный номер компании',
|
||||
],
|
||||
'Ticaret Odası' => [
|
||||
'en' => 'Chamber of Commerce',
|
||||
'de' => 'Handelskammer',
|
||||
'se' => 'Handelskammare',
|
||||
'ar' => 'الغرفة التجارية',
|
||||
'ru' => 'Торгово-промышленная палата',
|
||||
],
|
||||
'Gaziantep Ticaret Odası (GTO)' => [
|
||||
'en' => 'Gaziantep Chamber of Commerce (GTO)',
|
||||
'de' => 'Handelskammer Gaziantep (GTO)',
|
||||
'se' => 'Gazianteps Handelskammare (GTO)',
|
||||
'ar' => 'غرفة تجارة غازي عنتاب (GTO)',
|
||||
'ru' => 'Торгово-промышленная палата Газиантепа (GTO)',
|
||||
],
|
||||
'Sorumlu Müdür' => [
|
||||
'en' => 'Responsible Manager',
|
||||
'de' => 'Verantwortlicher Geschäftsführer',
|
||||
'se' => 'Ansvarig utgivare',
|
||||
'ar' => 'المدير المسؤول',
|
||||
'ru' => 'Ответственный менеджер',
|
||||
],
|
||||
'Yer Sağlayıcı' => [
|
||||
'en' => 'Hosting Provider',
|
||||
'de' => 'Hosting-Anbieter',
|
||||
'se' => 'Webbhotell',
|
||||
'ar' => 'مزود خدمة الاستضافة',
|
||||
'ru' => 'Хостинг-провайдер',
|
||||
],
|
||||
'KEP Adresi' => [
|
||||
'en' => 'Registered Email (KEP)',
|
||||
'de' => 'Registrierte E-Mail (KEP)',
|
||||
'se' => 'Registrerad e-post (KEP)',
|
||||
'ar' => 'البريد الإلكتروني المسجل (KEP)',
|
||||
'ru' => 'Зарегистрированный E-mail (KEP)',
|
||||
],
|
||||
'İletişim ve Resmi Bilgiler' => [
|
||||
'en' => 'Contact & Official Info',
|
||||
'de' => 'Kontakt & Offizielle Informationen',
|
||||
'se' => 'Kontakt & Officiell information',
|
||||
'ar' => 'الاتصال والمعلومات الرسمية',
|
||||
'ru' => 'Контактная и официальная информация',
|
||||
],
|
||||
'Kurumsal Bilgiler' => [
|
||||
'en' => 'Corporate Information',
|
||||
'de' => 'Unternehmensinformationen',
|
||||
'se' => 'Företagsinformation',
|
||||
'ar' => 'معلومات الشركة',
|
||||
'ru' => 'Информация о компании',
|
||||
],
|
||||
'Yetkili Temsilci' => [
|
||||
'en' => 'Authorized Representative',
|
||||
'de' => 'Vertretungsberechtigte Person',
|
||||
'se' => 'Behörig företrädare',
|
||||
'ar' => 'الممثل المفوض',
|
||||
'ru' => 'Уполномоченный представитель',
|
||||
],
|
||||
'Telefon' => [
|
||||
'en' => 'Phone',
|
||||
'de' => 'Telefon',
|
||||
'se' => 'Telefon',
|
||||
'ar' => 'الهاتف',
|
||||
'ru' => 'Телефон',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
<?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::create('awards', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('title')->nullable(); // Original/fallback title
|
||||
$table->text('description')->nullable(); // Original/fallback description
|
||||
$table->string('issuer')->nullable(); // Original/fallback issuer
|
||||
$table->date('award_date')->nullable();
|
||||
$table->string('image')->nullable();
|
||||
$table->string('external_link')->nullable();
|
||||
$table->boolean('is_featured')->default(false);
|
||||
$table->boolean('is_active')->default(true);
|
||||
$table->unsignedInteger('sort_order')->default(0);
|
||||
$table->string('category', 64)->default('general');
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
$table->index(['is_active', 'sort_order']);
|
||||
$table->index('is_featured');
|
||||
$table->index('award_date');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('awards');
|
||||
}
|
||||
};
|
||||
@@ -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('career_applications', function (Blueprint $table) {
|
||||
$table->string('to_be_signed_internship_form_path')->nullable()->after('signed_internship_form_path');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('career_applications', function (Blueprint $table) {
|
||||
$table->dropColumn('to_be_signed_internship_form_path');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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('career_applications', function (Blueprint $table) {
|
||||
$table->date('internship_start_date')->nullable()->after('to_be_signed_internship_form_path');
|
||||
$table->date('internship_end_date')->nullable()->after('internship_start_date');
|
||||
$table->integer('internship_total_days')->nullable()->after('internship_end_date');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('career_applications', function (Blueprint $table) {
|
||||
$table->dropColumn(['internship_start_date', 'internship_end_date', 'internship_total_days']);
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -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('career_applications', function (Blueprint $table) {
|
||||
$table->string('id_photocopy_path')->nullable()->after('contract_path');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('career_applications', function (Blueprint $table) {
|
||||
$table->dropColumn('id_photocopy_path');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -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('career_applications', function (Blueprint $table) {
|
||||
$table->string('github_repo')->nullable()->after('internship_total_days');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('career_applications', function (Blueprint $table) {
|
||||
$table->dropColumn('github_repo');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
<?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('career_applications', function (Blueprint $table) {
|
||||
$table->string('certificate_code')->nullable()->unique();
|
||||
$table->text('transcript_markdown')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('career_applications', function (Blueprint $table) {
|
||||
$table->dropColumn(['certificate_code', 'transcript_markdown']);
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
<?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('internship_journal_entries', function (Blueprint $table) {
|
||||
$table->boolean('supervisor_approved')->default(false);
|
||||
$table->boolean('unit_approved')->default(false);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('internship_journal_entries', function (Blueprint $table) {
|
||||
$table->dropColumn(['supervisor_approved', 'unit_approved']);
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,36 @@
|
||||
<?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::create('internship_journal_entries', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('career_application_id')
|
||||
->constrained('career_applications')
|
||||
->onDelete('cascade');
|
||||
$table->integer('day_number');
|
||||
$table->date('date');
|
||||
$table->text('content')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->unique(['career_application_id', 'day_number'], 'journal_app_day_unique');
|
||||
$table->unique(['career_application_id', 'date'], 'journal_app_date_unique');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('internship_journal_entries');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,38 @@
|
||||
<?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('career_applications', function (Blueprint $table) {
|
||||
$table->boolean('notebook_supervisor_signed')->default(false);
|
||||
$table->string('notebook_supervisor_name')->nullable();
|
||||
$table->boolean('notebook_unit_signed')->default(false);
|
||||
$table->string('notebook_unit_name')->nullable();
|
||||
$table->boolean('notebook_approved')->default(false);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('career_applications', function (Blueprint $table) {
|
||||
$table->dropColumn([
|
||||
'notebook_supervisor_signed',
|
||||
'notebook_supervisor_name',
|
||||
'notebook_unit_signed',
|
||||
'notebook_unit_name',
|
||||
'notebook_approved'
|
||||
]);
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -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('internship_journal_entries', function (Blueprint $table) {
|
||||
$table->boolean('is_retroactive')->default(false);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('internship_journal_entries', function (Blueprint $table) {
|
||||
$table->dropColumn('is_retroactive');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -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('internship_journal_entries', function (Blueprint $table) {
|
||||
$table->string('supervisor_name')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('internship_journal_entries', function (Blueprint $table) {
|
||||
$table->dropColumn('supervisor_name');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -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('career_applications', function (Blueprint $table) {
|
||||
$table->string('github_username')->nullable()->after('github_repo');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('career_applications', function (Blueprint $table) {
|
||||
$table->dropColumn('github_username');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Award;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class AwardSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$awards = [
|
||||
[
|
||||
'title' => 'Here & AWS & THY Hackathon Birinciliği',
|
||||
'description' => '21 Mart 2019 yılında Here, Amazon Web Services (AWS) ve Türk Hava Yolları\'nın (THY) ortaklaşa yürüttüğü Hackathon kapsamında büyük bir başarı göstererek 1. lik ödülünü almaya hak kazandık.',
|
||||
'issuer' => 'Here & AWS & THY',
|
||||
'award_date' => '2019-03-21',
|
||||
'image' => 'assets/img/awards/truncgil-hackathon-birincisi-here-aws-thy.png',
|
||||
'external_link' => 'https://truncgil.com',
|
||||
'is_featured' => true,
|
||||
'is_active' => true,
|
||||
'sort_order' => 1,
|
||||
'category' => 'hackathon',
|
||||
'translations' => [
|
||||
'en' => [
|
||||
'title' => 'Here & AWS & THY Hackathon First Place',
|
||||
'description' => 'On March 21, 2019, we achieved outstanding success and won the 1st place award in the Hackathon jointly organized by Here, Amazon Web Services (AWS), and Turkish Airlines (THY).',
|
||||
'issuer' => 'Here, AWS & Turkish Airlines',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
'title' => 'Gaziantep Teknopark Yılın İhracat Ödülü',
|
||||
'description' => 'İhracat faaliyetlerindeki üstün başarımızdan ötürü 26 Aralık 2019 yılında Gaziantep Teknopark tarafından "Yılın İhracat Ödülü"ne layık görüldük.',
|
||||
'issuer' => 'Gaziantep Teknopark',
|
||||
'award_date' => '2019-12-26',
|
||||
'image' => 'assets/img/awards/truncgil-teknoloji-yilin-ihracat-odulu.png',
|
||||
'external_link' => 'https://truncgil.com',
|
||||
'is_featured' => true,
|
||||
'is_active' => true,
|
||||
'sort_order' => 2,
|
||||
'category' => 'export',
|
||||
'translations' => [
|
||||
'en' => [
|
||||
'title' => 'Gaziantep Technopark Export of the Year Award',
|
||||
'description' => 'Due to our outstanding achievements in export activities, we were deemed worthy of the "Export of the Year Award" by Gaziantep Technopark on December 26, 2019.',
|
||||
'issuer' => 'Gaziantep Technopark',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
'title' => 'HackSmarCity Hackathon Birinciliği',
|
||||
'description' => 'Gaziantep Teknopark, Target Teknoloji Transfer Ofisi, Gaziantep Büyükşehir Belediyesi ve Gaziantep Bilişim\'in ortaklaşa düzenlediği akıllı şehir çözümleri temalı HackSmarCity Hackathon\'unda 1. lik elde ettik.',
|
||||
'issuer' => 'Gaziantep Büyükşehir Belediyesi & Teknopark',
|
||||
'award_date' => '2019-11-15', // Approximate date in 2019/2020
|
||||
'image' => 'assets/img/awards/truncgil-teknoloji-hacksmarcity.jpg',
|
||||
'external_link' => 'https://truncgil.com',
|
||||
'is_featured' => false,
|
||||
'is_active' => true,
|
||||
'sort_order' => 3,
|
||||
'category' => 'hackathon',
|
||||
'translations' => [
|
||||
'en' => [
|
||||
'title' => 'HackSmarCity Hackathon First Place',
|
||||
'description' => 'We achieved 1st place in the HackSmarCity Hackathon themed around smart city solutions, jointly organized by Gaziantep Technopark, Target Technology Transfer Office, Gaziantep Metropolitan Municipality, and Gaziantep Bilisim.',
|
||||
'issuer' => 'Gaziantep Metropolitan Municipality & Technopark',
|
||||
]
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($awards as $awardData) {
|
||||
$translations = $awardData['translations'] ?? [];
|
||||
unset($awardData['translations']);
|
||||
|
||||
$award = Award::updateOrCreate(
|
||||
[
|
||||
'award_date' => $awardData['award_date'],
|
||||
'image' => $awardData['image'],
|
||||
],
|
||||
$awardData
|
||||
);
|
||||
|
||||
// Save default (Turkish) translations in translation table too so HasTranslations resolves correctly
|
||||
$award->setTranslation('title', 'tr', $awardData['title'], 'published');
|
||||
$award->setTranslation('description', 'tr', $awardData['description'], 'published');
|
||||
$award->setTranslation('issuer', 'tr', $awardData['issuer'], 'published');
|
||||
|
||||
// Save English translations
|
||||
foreach ($translations as $langCode => $fields) {
|
||||
foreach ($fields as $fieldName => $value) {
|
||||
$award->setTranslation($fieldName, $langCode, $value, 'published');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,9 @@ class DatabaseSeeder extends Seeder
|
||||
SiteTranslationsSeeder::class,
|
||||
CompanyHistoryItemSeeder::class,
|
||||
DekupaiProductSeeder::class,
|
||||
FinanceProductSeeder::class,
|
||||
BlogSeeder::class,
|
||||
AwardSeeder::class,
|
||||
]);
|
||||
|
||||
// User::factory(10)->create();
|
||||
|
||||
@@ -0,0 +1,168 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Product;
|
||||
use App\Models\ProductCategory;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class FinanceProductSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
// 1. Download the logo from https://finance.truncgil.com/img/logo.svg
|
||||
$logoUrl = 'https://finance.truncgil.com/img/logo.svg';
|
||||
$logoFileName = 'products/truncgil-finance-logo.svg';
|
||||
|
||||
try {
|
||||
// Check if directory exists in the public disk
|
||||
if (!Storage::disk('public')->exists('products')) {
|
||||
Storage::disk('public')->makeDirectory('products');
|
||||
}
|
||||
|
||||
// Get logo contents
|
||||
$context = stream_context_create([
|
||||
"ssl" => [
|
||||
"verify_peer" => false,
|
||||
"verify_peer_name" => false,
|
||||
],
|
||||
"http" => [
|
||||
"header" => "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)\r\n"
|
||||
]
|
||||
]);
|
||||
$logoContents = file_get_contents($logoUrl, false, $context);
|
||||
|
||||
if ($logoContents !== false) {
|
||||
Storage::disk('public')->put($logoFileName, $logoContents);
|
||||
$this->command?->info('Downloaded and stored the Trunçgil Finance logo successfully.');
|
||||
} else {
|
||||
$this->command?->error('Could not download logo contents.');
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
$this->command?->error('Failed to download Trunçgil Finance logo: ' . $e->getMessage());
|
||||
}
|
||||
|
||||
// 2. Prepare translatable fields
|
||||
$title = [
|
||||
'tr' => 'Trunçgil Finance (Canlı Döviz, Altın ve Kripto Para API Servisi)',
|
||||
'en' => 'Trunçgil Finance (Live Currency, Gold, and Crypto API Service)',
|
||||
];
|
||||
|
||||
$content = [
|
||||
'tr' => 'Trunçgil Finance, altın, döviz ve kripto para verilerini anlık ve gecikmesiz olarak sunan yüksek performanslı bir API servisidir. Kurumsal uygulamalarınızdan mobil projelerinize kadar her ölçekte güvenle entegre edebilirsiniz.',
|
||||
'en' => 'Trunçgil Finance is a high-performance API service offering instantaneous and lag-free gold, currency, and cryptocurrency data. Securely integrate into your projects of any scale, from enterprise apps to mobile platforms.',
|
||||
];
|
||||
|
||||
// 3. Prepare detailed landing page data structure
|
||||
$landingPageData = [
|
||||
'hero' => [
|
||||
'slogan_tr' => 'Yüksek Performanslı Altın, Döviz ve Kripto API Servisi',
|
||||
'slogan_en' => 'High-Performance Gold, Currency, and Crypto API Service',
|
||||
'sub_slogan_tr' => 'Anlık finansal verileri, güçlü altyapımızla projelerinize gecikmesiz entegre edin. Geliştirici dostu entegrasyon ve sıfır kesinti.',
|
||||
'sub_slogan_en' => 'Integrate real-time financial data into your applications lag-free with our robust infrastructure. Developer-friendly and 100% uptime.',
|
||||
'featured_image' => $logoFileName,
|
||||
],
|
||||
'features' => [
|
||||
[
|
||||
'title_tr' => 'Gecikmesiz Canlı Akış',
|
||||
'title_en' => 'Lag-Free Live Streams',
|
||||
'icon' => 'processor',
|
||||
],
|
||||
[
|
||||
'title_tr' => 'Geliştirici Dostu SDK & API',
|
||||
'title_en' => 'Developer-Friendly SDK & API',
|
||||
'icon' => 'crop',
|
||||
],
|
||||
[
|
||||
'title_tr' => 'Güvenli ve Kesintisiz Servis',
|
||||
'title_en' => 'Secure & Uptime Gurantee',
|
||||
'icon' => 'safe',
|
||||
],
|
||||
[
|
||||
'title_tr' => 'Zengin Veri Kaynakları',
|
||||
'title_en' => 'Rich Data Sources',
|
||||
'icon' => 'cloud',
|
||||
],
|
||||
],
|
||||
'how_it_works' => [
|
||||
'download_form_label_tr' => 'Nasıl Entegre Edilir?',
|
||||
'download_form_label_en' => 'How to Integrate?',
|
||||
'steps' => [
|
||||
[
|
||||
'number' => 1,
|
||||
'title_tr' => 'API Anahtarınızı Alın',
|
||||
'title_en' => 'Get Your API Key',
|
||||
'description_tr' => 'Saniyeler içinde kayıt olun ve size özel güvenli API anahtarınızı oluşturun.',
|
||||
'description_en' => 'Sign up in seconds and generate your secure, dedicated API key.',
|
||||
],
|
||||
[
|
||||
'number' => 2,
|
||||
'title_tr' => 'Dokümantasyonu İnceleyin',
|
||||
'title_en' => 'Browse Documentation',
|
||||
'description_tr' => 'Her dilde hazırlanmış örnek kodlar ve şemalarla entegrasyon adımlarını inceleyin.',
|
||||
'description_en' => 'Check integration steps with sample codes and schemas available in every language.',
|
||||
],
|
||||
[
|
||||
'number' => 3,
|
||||
'title_tr' => 'Kodunuza Dahil Edin',
|
||||
'title_en' => 'Integrate Into Code',
|
||||
'description_tr' => 'Hazır kütüphanelerimizle veya RESTful uç noktalarımızla verileri projenize çekin.',
|
||||
'description_en' => 'Fetch data using our client SDKs or standard RESTful HTTP endpoints.',
|
||||
],
|
||||
[
|
||||
'number' => 4,
|
||||
'title_tr' => 'Canlıya Alın & İzleyin',
|
||||
'title_en' => 'Go Live & Monitor',
|
||||
'description_tr' => 'Kullanım istatistiklerinizi panelimizden izleyin ve yüksek hızın tadını çıkarın.',
|
||||
'description_en' => 'Track your request statistics in real-time from the dashboard and enjoy lightning speed.',
|
||||
],
|
||||
],
|
||||
],
|
||||
'faqs' => [
|
||||
[
|
||||
'question_tr' => 'Veriler ne sıklıkla güncelleniyor?',
|
||||
'question_en' => 'How frequently is the data updated?',
|
||||
'answer_tr' => 'Finansal verilerimiz doğrudan global ve yerel borsalardan anlık akış olarak alınmakta ve milisaniyeler bazında güncellenmektedir.',
|
||||
'answer_en' => 'Our financial feeds are retrieved directly from global and regional exchanges and updated in real-time on a millisecond scale.',
|
||||
],
|
||||
[
|
||||
'question_tr' => 'Ücretsiz deneme sürümü mevcut mu?',
|
||||
'question_en' => 'Is there a free tier available?',
|
||||
'answer_tr' => 'Evet. Trunçgil Finance geliştiriciler için belirli sayıda aylık istek limitine sahip tamamen ücretsiz bir sandbox planı sunmaktadır.',
|
||||
'answer_en' => 'Yes. Trunçgil Finance offers a completely free sandbox tier with a monthly request allowance for developers to test and build.',
|
||||
],
|
||||
[
|
||||
'question_tr' => 'Hangi veri türlerini sunuyorsunuz?',
|
||||
'question_en' => 'What kinds of financial data do you offer?',
|
||||
'answer_tr' => 'Uluslararası döviz pariteleri, serbest piyasa ve banka altın fiyatları, kıymetli madenler ve tüm popüler kripto para birimleri veri setlerimizin parçasıdır.',
|
||||
'answer_en' => 'Global currency exchange rates, free-market and banking gold values, precious metals, and all major cryptocurrency pairs are fully covered.',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
// 4. Determine category
|
||||
$category = ProductCategory::first();
|
||||
$categoryId = $category ? $category->id : 1;
|
||||
|
||||
// 5. Update or Create the Product
|
||||
Product::updateOrCreate(
|
||||
['slug' => 'truncgil-finance'],
|
||||
[
|
||||
'product_category_id' => $categoryId,
|
||||
'title' => $title,
|
||||
'type' => 'product',
|
||||
'hero_image' => $logoFileName,
|
||||
'content' => $content,
|
||||
'landing_page_data' => $landingPageData,
|
||||
'view_template' => 'front.products.finance',
|
||||
'external_url' => 'https://finance.truncgil.com/',
|
||||
'sort_order' => 2,
|
||||
'is_active' => true,
|
||||
]
|
||||
);
|
||||
|
||||
$this->command?->info('✅ Trunçgil Finance product seeded successfully!');
|
||||
}
|
||||
}
|
||||
@@ -78,6 +78,24 @@ class PageSeeder extends Seeder
|
||||
]
|
||||
);
|
||||
|
||||
// 2.1.2 Ödüllerimiz (Child of Kurumsal)
|
||||
Page::updateOrCreate(
|
||||
['slug' => 'odullerimiz'],
|
||||
[
|
||||
'author_id' => $author->id,
|
||||
'parent_id' => $corporate->id,
|
||||
'title' => 'Ödüllerimiz',
|
||||
'excerpt' => 'Yenilikçi teknolojilerimizle sektöre yön veriyor, başarılarimizi küresel ödüllerle taçlandırıyoruz.',
|
||||
'content' => '<p>Yenilikçi teknolojilerimizle sektöre yön veriyor, başarılarimizi küresel ödüllerle taçlandırıyoruz.</p>',
|
||||
'template' => 'odullerimiz',
|
||||
'status' => 'published',
|
||||
'is_homepage' => false,
|
||||
'show_in_menu' => true,
|
||||
'sort_order' => 6, // Sort order among Kurumsal children
|
||||
'published_at' => now(),
|
||||
]
|
||||
);
|
||||
|
||||
// 2.2 Vizyon & Misyon (Child of Kurumsal)
|
||||
Page::updateOrCreate(
|
||||
['slug' => 'vizyon-misyon'],
|
||||
|
||||
@@ -69,4 +69,65 @@ return [
|
||||
'flexible_projects_desc' => 'المرونة ضرورية في مشاريعنا. أنت تشارك في مشاريع حقيقية تناسب قدراتك.',
|
||||
'focus_on_development' => 'التركيز على التنمية',
|
||||
'intent_letter' => 'خطاب النوايا',
|
||||
|
||||
// Statuses
|
||||
'pending' => 'في الانتظار',
|
||||
'reviewed' => 'تمت المراجعة',
|
||||
'rejected' => 'مرفوض',
|
||||
'accepted' => 'مقبول',
|
||||
'waiting_document' => 'في انتظار الوثيقة',
|
||||
|
||||
// Wizard and Mermaid
|
||||
'step_1_title' => '1. الشروط والأحكام',
|
||||
'step_2_title' => '2. تحميل النماذج',
|
||||
'step_3_title' => '3. أكمل التطبيق',
|
||||
'kvkk_title' => 'الغرض من جمع المستندات (معلومات KVKK)',
|
||||
'kvkk_nda_title' => '1. اتفاقية السرية (NDA)',
|
||||
'kvkk_nda_desc' => 'مطلوب لضمان أمن رموز المصدر لمشروعنا ومخططات قاعدة البيانات والأسرار التجارية.',
|
||||
'kvkk_contract_title' => '2. اتفاقية مقاول مستقل',
|
||||
'kvkk_contract_desc' => 'مطلوب لتأمين شروط وحقوق نموذج العمل المرن القائم على المشكلات/المهام قانونيًا.',
|
||||
'kvkk_id_title' => '3. نسخة من الهوية',
|
||||
'kvkk_id_desc' => 'مطلوب للتحقق من الهوية القانونية، وتحديد المفوض بالتوقيع، ومنع الطلبات الاحتيالية.',
|
||||
'hr_flow_diagram' => 'مخطط تقدم الموارد البشرية',
|
||||
'terms_accept_label' => 'لقد قرأت نموذج العمل وشروط التقديم ومخطط تدفق عملية الموارد البشرية وأوافق عليها.',
|
||||
'accept_terms_btn' => 'قبول الشروط والاستمرار',
|
||||
'download_required_documents' => 'تحميل المستندات المطلوبة',
|
||||
'download_required_documents_desc' => 'لإكمال طلبك، يجب عليك تحميل الاتفاقيات القانونية التالية، وقراءتها بعناية، وتوقيعها، ثم تحميلها في الخطوة التالية.',
|
||||
'nda_card_desc' => 'إنها اتفاقية عدم الإفشاء التي يجب توقيعها لحماية سرية الرموز البرمجية للبرامج والبيانات والعمليات التابعة لمشاريع شركة Trunçgil Teknoloji.',
|
||||
'review_download_document' => 'مراجعة وتحميل الاتفاقية',
|
||||
'contract_card_desc' => 'إنها اتفاقية خدمات المقاول المستقل التي تحدد شروط العمل عن بعد القائم على أساس المشاكل/المهام، وشروط الدفع، وحقوق الأطراف.',
|
||||
'go_back' => 'الرجوع',
|
||||
'downloaded_next_btn' => 'لقد قمت بتحميل الاتفاقيات، انتقل إلى الخطوة الأخيرة',
|
||||
'name_placeholder' => 'مثال: أحمد يلمظ',
|
||||
'email_placeholder' => 'مثال: ahmet@example.com',
|
||||
'phone_placeholder' => 'مثال: 05XX XXX XX XX',
|
||||
'id_photocopy' => 'نسخة من الهوية',
|
||||
'id_photocopy_description' => 'نسخة من البطاقة الشخصية من الجهتين أو بطاقة الهوية الجديدة أو رخصة القيادة (PDF, JPG, PNG - بحد أقصى 5 ميجابايت)',
|
||||
|
||||
// Mermaid Nodes
|
||||
'mermaid_start' => 'طلب واتفاقية عدم الإفشاء',
|
||||
'mermaid_dec1' => 'هل تمت الموافقة على المرشح؟',
|
||||
'mermaid_red1' => 'رفض - تنتهي العملية',
|
||||
'mermaid_git' => 'يتم توفير الوصول إلى مستودع GitHub',
|
||||
'mermaid_sample' => 'يقوم المرشح بتثبيت المشروع ويعمل على مهمة عينة',
|
||||
'mermaid_dec2' => 'هل تم إكمال مهمة العينة بنجاح؟',
|
||||
'mermaid_red2' => 'رفض - تنتهي العملية',
|
||||
'mermaid_issues' => 'الاستمرار في المشاكل الأخرى',
|
||||
'mermaid_dec3' => 'هل اختار المرشح مشكلة؟',
|
||||
'mermaid_wait' => 'المرشح في الانتظار أو يختار مهمة أخرى',
|
||||
'mermaid_assign' => 'يتم تعيين المشكلة',
|
||||
'mermaid_work' => 'يبدأ العمل',
|
||||
'mermaid_review' => 'التسليم والمراجعة',
|
||||
'mermaid_dec4' => 'هل تمت الموافقة على المهمة؟',
|
||||
'mermaid_feedback' => 'طلب تصحيح وتعليقات',
|
||||
'mermaid_payment' => 'يتم دفع الرسوم',
|
||||
|
||||
// Internship Wizard keys
|
||||
'dear_intern' => 'عزيزي المرشح للمتدرب،',
|
||||
'intern_welcome_text_1' => 'بصفتنا Trunçgil Technology، نحن فخورون بالمساهمة في تطوير المواهب الشابة من خلال برنامج التدريب عن بعد. نحن نقيّم المتدربين لدينا في مشاريع حقيقية، ونوفر لهم تجربة فريدة من نوعها في العمل عن بعد وتنسيق الفريق.',
|
||||
'intern_welcome_text_2' => 'لكي يتم تقييم طلبك، يجب عليك أولاً مراجعة نموذج العمل وشروط التقديم لدينا، ثم ملء النموذج بالكامل عن طريق قبول شروط طلب التدريب.',
|
||||
'intern_terms_accept_label' => 'لقد قرأت نموذج عمل التدريب عن بعد وشروط التقديم وتدفق عملية الموارد البشرية وأوافق عليها.',
|
||||
'accept_intern_terms_btn' => 'قبول الشروط والانتقال إلى استمارة الطلب',
|
||||
'intern_step_1_title' => '1. الشروط والأحكام',
|
||||
'intern_step_2_title' => '2. أكمل التطبيق',
|
||||
];
|
||||
|
||||
@@ -0,0 +1,144 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
// Navigation & list
|
||||
'nav-music-productions' => 'الإنتاج الموسيقي',
|
||||
'breadcrumb_home' => 'الرئيسية',
|
||||
'meta-index-subtitle' => 'Truncgil',
|
||||
'meta-index-title' => 'إنتاج موسيقي، موسيقى أفلام ومشاريع موسيقية مؤسسية.',
|
||||
'meta-index-description' => 'اكتشف ألبوماتنا وسينغلاتنا ومشاريع الإنتاج المنشورة على Spotify وYouTube والمنصات الرقمية.',
|
||||
'empty' => 'لا يوجد إنتاج موسيقي مسجّل حتى الآن.',
|
||||
'search_placeholder' => 'ابحث بالعنوان أو اسم العميل…',
|
||||
'search_no_results' => 'لا توجد نتائج لـ ":query".',
|
||||
'card_category_default' => 'إنتاج',
|
||||
'production_date_unknown' => 'التاريخ غير محدد',
|
||||
'view_details_tooltip' => 'عرض التفاصيل',
|
||||
'project_details' => 'تفاصيل المشروع',
|
||||
'back_to_list' => 'العودة إلى القائمة',
|
||||
'prev' => 'السابق',
|
||||
'next' => 'التالي',
|
||||
|
||||
// Module labels
|
||||
'title' => 'الإنتاج الموسيقي',
|
||||
'navigation_label' => 'إنتاج موسيقي',
|
||||
'model_label' => 'إنتاج موسيقي',
|
||||
'plural_model_label' => 'إنتاجات موسيقية',
|
||||
|
||||
// Actions
|
||||
'create' => 'إنشاء إنتاج موسيقي جديد',
|
||||
'edit' => 'تعديل الإنتاج الموسيقي',
|
||||
'save' => 'حفظ',
|
||||
'cancel' => 'إلغاء',
|
||||
'delete' => 'حذف الإنتاج الموسيقي',
|
||||
'restore' => 'استعادة الإنتاج الموسيقي',
|
||||
'force_delete' => 'حذف نهائي',
|
||||
|
||||
// Form fields
|
||||
'title_field' => 'العنوان',
|
||||
'slug_field' => 'مسار URL',
|
||||
'content_field' => 'المحتوى',
|
||||
'client_name_field' => 'اسم العميل',
|
||||
'production_date_field' => 'تاريخ الإنتاج',
|
||||
'cover_image_field' => 'صورة الغلاف',
|
||||
'gallery_field' => 'صور المعرض',
|
||||
'is_active_field' => 'نشط؟',
|
||||
'sort_order_field' => 'ترتيب الفرز',
|
||||
|
||||
// Sections
|
||||
'content_section' => 'المحتوى',
|
||||
'settings_section' => 'إعدادات الإنتاج',
|
||||
'translations_section' => 'الترجمات',
|
||||
|
||||
// Helper texts
|
||||
'slug_helper' => 'الجزء الذي سيظهر في URL. مثال: music-production-1',
|
||||
'cover_image_helper' => 'اختر صورة غلاف للإنتاج',
|
||||
'gallery_helper' => 'اختر صورًا أخرى للإنتاج (يدعم الرفع المتعدد)',
|
||||
'production_date_helper' => 'تاريخ اكتمال الإنتاج',
|
||||
'is_active_helper' => 'عرض هذا الإنتاج الموسيقي على الموقع',
|
||||
'sort_order_helper' => 'أدخل رقم ترتيب لأولوية القائمة',
|
||||
|
||||
// Status options
|
||||
'status_draft' => 'مسودة',
|
||||
'status_published' => 'منشور',
|
||||
'status_archived' => 'مؤرشف',
|
||||
|
||||
// Messages
|
||||
'created_successfully' => 'تم إنشاء الإنتاج الموسيقي بنجاح.',
|
||||
'updated_successfully' => 'تم تحديث الإنتاج الموسيقي بنجاح.',
|
||||
'deleted_successfully' => 'تم حذف الإنتاج الموسيقي بنجاح.',
|
||||
'restored_successfully' => 'تم استعادة الإنتاج الموسيقي بنجاح.',
|
||||
|
||||
// Table columns
|
||||
'table_title' => 'العنوان',
|
||||
'table_slug' => 'مسار URL',
|
||||
'table_client_name' => 'العميل',
|
||||
'table_production_date' => 'تاريخ الإنتاج',
|
||||
'table_status' => 'الحالة',
|
||||
'table_is_active' => 'نشط',
|
||||
'table_created_at' => 'تاريخ الإنشاء',
|
||||
'table_updated_at' => 'تاريخ التحديث',
|
||||
|
||||
// Validation messages
|
||||
'title_required' => 'حقل العنوان إلزامي.',
|
||||
'slug_required' => 'حقل مسار URL إلزامي.',
|
||||
'slug_unique' => 'هذا المسار مستخدم بالفعل.',
|
||||
|
||||
// Spotify
|
||||
'spotify_section' => 'معلومات Spotify',
|
||||
'spotify_album_id_field' => 'معرّف ألبوم Spotify',
|
||||
'spotify_url_field' => 'رابط Spotify',
|
||||
'spotify_type_field' => 'نوع Spotify',
|
||||
'spotify_synced_at_field' => 'آخر مزامنة Spotify',
|
||||
'spotify_type_album' => 'ألبوم',
|
||||
'spotify_type_single' => 'سينغل',
|
||||
'spotify_type_compilation' => 'تجميعة',
|
||||
'spotify_listen_on_spotify' => 'استمع على Spotify',
|
||||
'spotify_track_singular' => 'مقطوعة',
|
||||
'spotify_track_plural' => 'مقطوعات',
|
||||
'sync_spotify' => 'مزامنة من Spotify',
|
||||
'sync_spotify_heading' => 'مزامنة Spotify',
|
||||
'sync_spotify_description' => 'سيتم مزامنة الألبومات والسينغلات من حساب الفنان مع الإنتاجات الموسيقية.',
|
||||
'spotify_sync_started' => 'جارٍ بدء مزامنة Spotify...',
|
||||
'spotify_sync_completed' => 'اكتملت المزامنة. :created جديد، :updated محدَّث (الإجمالي :total).',
|
||||
'spotify_sync_success' => 'اكتملت مزامنة Spotify بنجاح.',
|
||||
'spotify_sync_failed' => 'فشلت مزامنة Spotify. تحقق من السجلات.',
|
||||
'spotify_not_configured' => 'بيانات Spotify API مفقودة. حدد SPOTIFY_CLIENT_ID وSPOTIFY_CLIENT_SECRET وSPOTIFY_ARTIST_ID في ملف .env.',
|
||||
'spotify_token_failed' => 'فشل الحصول على رمز الوصول لـ Spotify.',
|
||||
'spotify_albums_fetch_failed' => 'فشل جلب قائمة ألبومات Spotify.',
|
||||
'spotify_premium_required' => 'يحتاج حساب Spotify المطوّر إلى اشتراك Premium نشط. Detail: :detail',
|
||||
'spotify_no_albums' => 'لم يتم العثور على ألبومات أو سينغلات في حساب فنان Spotify.',
|
||||
'spotify_untitled_album' => 'ألبوم بلا عنوان',
|
||||
|
||||
// YouTube
|
||||
'youtube_section' => 'معلومات YouTube',
|
||||
'youtube_video_id_field' => 'معرّف فيديو YouTube',
|
||||
'youtube_url_field' => 'رابط YouTube',
|
||||
'youtube_description_field' => 'وصف YouTube',
|
||||
'youtube_synced_at_field' => 'آخر مزامنة YouTube',
|
||||
'youtube_watch_on_youtube' => 'شاهد على YouTube',
|
||||
'sync_youtube' => 'مزامنة من YouTube',
|
||||
'sync_youtube_heading' => 'مزامنة إصدارات YouTube',
|
||||
'sync_youtube_description' => 'سيتم مزامنة إصدارات المقاطع الفنية من قائمة تشغيل Releases في قناتك.',
|
||||
'youtube_sync_started' => 'جارٍ بدء مزامنة إصدارات YouTube...',
|
||||
'youtube_sync_source' => 'المصدر: :source',
|
||||
'youtube_sync_completed' => 'اكتملت المزامنة. :created جديد، :updated محدَّث (الإجمالي :total).',
|
||||
'youtube_sync_success' => 'اكتملت مزامنة YouTube بنجاح.',
|
||||
'youtube_sync_failed' => 'فشلت مزامنة YouTube. تحقق من السجلات.',
|
||||
'youtube_not_configured' => 'بيانات YouTube API مفقودة. حدد YOUTUBE_API_KEY وYOUTUBE_CHANNEL_ID في ملف .env.',
|
||||
'youtube_releases_fetch_failed' => 'فشل جلب قائمة إصدارات YouTube.',
|
||||
'youtube_referrer_blocked' => 'رفض مفتاح YouTube API الطلب. Detail: :detail',
|
||||
'youtube_playlist_not_resolved' => 'تعذّر تحليل معرّف قائمة التشغيل. حدد YOUTUBE_CHANNEL_ID أو YOUTUBE_PLAYLIST_ID.',
|
||||
'youtube_no_releases' => 'لم يتم العثور على إصدارات في قائمة تشغيل YouTube Releases.',
|
||||
'youtube_untitled_release' => 'إصدار بلا عنوان',
|
||||
|
||||
// Metadata table labels
|
||||
'field' => 'الحقل',
|
||||
'value' => 'القيمة',
|
||||
'track' => 'المقطوعة',
|
||||
'style' => 'الأسلوب',
|
||||
'contributors' => 'المساهمون',
|
||||
'released_on' => 'تاريخ الإصدار',
|
||||
'distributor' => 'الموزع',
|
||||
'label' => 'التسجيلات',
|
||||
'youtube' => 'YouTube',
|
||||
];
|
||||
@@ -78,4 +78,65 @@ return [
|
||||
'flexible_projects_desc' => 'Flexibilität ist in unseren Projekten unerlässlich. Sie nehmen an realen Projekten teil, die für Ihre Talente geeignet sind.',
|
||||
'focus_on_development' => 'Fokus auf Entwicklung',
|
||||
'intent_letter' => 'Motivationsschreiben',
|
||||
|
||||
// Statuses
|
||||
'pending' => 'Ausstehend',
|
||||
'reviewed' => 'Überprüft',
|
||||
'rejected' => 'Abgelehnt',
|
||||
'accepted' => 'Akzeptiert',
|
||||
'waiting_document' => 'Warten auf Dokument',
|
||||
|
||||
// Wizard and Mermaid
|
||||
'step_1_title' => '1. Geschäftsbedingungen',
|
||||
'step_2_title' => '2. Formulare herunterladen',
|
||||
'step_3_title' => '3. Bewerbung abschließen',
|
||||
'kvkk_title' => 'Zweck der Dokumentensammlung (KVKK-Information)',
|
||||
'kvkk_nda_title' => '1. Vertraulichkeitsvereinbarung (NDA)',
|
||||
'kvkk_nda_desc' => 'Erforderlich, um die Sicherheit der Quellcodes, Datenbankschemata und Geschäftsgeheimnisse unseres Projekts zu gewährleisten.',
|
||||
'kvkk_contract_title' => '2. Freier Mitarbeitervertrag',
|
||||
'kvkk_contract_desc' => 'Erforderlich, um die Bedingungen und Ihre Rechte des aufgabenbasierten flexiblen Arbeitsmodells rechtlich abzusichern.',
|
||||
'kvkk_id_title' => '3. Ausweiskopie',
|
||||
'kvkk_id_desc' => 'Erforderlich zur gesetzlichen Identitätsprüfung, Ermittlung des zeichnungsberechtigten Vertreters und zur Vermeidung betrügerischer Bewerbungen.',
|
||||
'hr_flow_diagram' => 'HR-Fortschrittsdiagramm',
|
||||
'terms_accept_label' => 'Ich habe das Arbeitsmodell, die Bewerbungsbedingungen und das HR-Prozessdiagramm gelesen und akzeptiere sie.',
|
||||
'accept_terms_btn' => 'Bedingungen akzeptieren und fortfahren',
|
||||
'download_required_documents' => 'Erforderliche Dokumente herunterladen',
|
||||
'download_required_documents_desc' => 'Um Ihre Bewerbung abzuschließen, müssen Sie die folgenden rechtlichen Vereinbarungen herunterladen, sorgfältig lesen, unterschreiben und im nächsten Schritt hochladen.',
|
||||
'nda_card_desc' => 'Es handelt sich um die Vertraulichkeitsvereinbarung (NDA), die zwingend zu unterzeichnen ist, um die Vertraulichkeit von Quellcodes, Daten und Prozessen von Trunçgil Technology-Projekten zu schützen.',
|
||||
'review_download_document' => 'Vereinbarung prüfen & herunterladen',
|
||||
'contract_card_desc' => 'Es handelt sich um den Dienstvertrag für freie Mitarbeiter, der die Bedingungen für die aufgabenbasierte Remote-Arbeit, die Zahlungsbedingungen und die Rechte der Parteien regelt.',
|
||||
'go_back' => 'Zurückgehen',
|
||||
'downloaded_next_btn' => 'Ich habe die Vereinbarungen heruntergeladen, zum letzten Schritt fortfahren',
|
||||
'name_placeholder' => 'z. B.: Max Mustermann',
|
||||
'email_placeholder' => 'z. B.: max@example.com',
|
||||
'phone_placeholder' => 'z. B.: +49 1XX XXX XX XX',
|
||||
'id_photocopy' => 'Ausweiskopie',
|
||||
'id_photocopy_description' => 'Vorder- und Rückseite des Personalausweises, der neuen Identitätskarte oder des Führerscheins (PDF, JPG, PNG - Max. 5MB)',
|
||||
|
||||
// Mermaid Nodes
|
||||
'mermaid_start' => 'Bewerbung und Vertraulichkeitsvereinbarung',
|
||||
'mermaid_dec1' => 'Bewerber freigegeben?',
|
||||
'mermaid_red1' => 'Ablehnung - Prozess endet',
|
||||
'mermaid_git' => 'GitHub-Repository-Zugriff gewährt',
|
||||
'mermaid_sample' => 'Bewerber richtet Projekt ein und arbeitet an einer Beispielaufgabe',
|
||||
'mermaid_dec2' => 'Beispielaufgabe erfolgreich abgeschlossen?',
|
||||
'mermaid_red2' => 'Ablehnung - Prozess endet',
|
||||
'mermaid_issues' => 'Weiter mit anderen Issues',
|
||||
'mermaid_dec3' => 'Hat der Bewerber ein Issue ausgewählt?',
|
||||
'mermaid_wait' => 'Bewerber wartet oder wählt andere Aufgabe',
|
||||
'mermaid_assign' => 'Issue-Zuweisung erfolgt',
|
||||
'mermaid_work' => 'Arbeit beginnt',
|
||||
'mermaid_review' => 'Abgabe und Überprüfung',
|
||||
'mermaid_dec4' => 'Aufgabe freigegeben?',
|
||||
'mermaid_feedback' => 'Korrekturanforderung und Feedback',
|
||||
'mermaid_payment' => 'Zahlung wird geleistet',
|
||||
|
||||
// Internship Wizard keys
|
||||
'dear_intern' => 'Sehr geehrter Praktikantenkandidat,',
|
||||
'intern_welcome_text_1' => 'Als Trunçgil Technology sind wir stolz darauf, durch unser Remote-Praktikumsprogramm zur Entwicklung junger Talente beizutragen. Wir bewerten unsere Praktikanten in realen Projekten und bieten ihnen eine einzigartige Erfahrung in der Remote-Arbeit und Teamkoordination.',
|
||||
'intern_welcome_text_2' => 'Damit Ihre Bewerbung bewertet werden kann, müssen Sie zunächst unser Arbeitsmodell und unsere Bewerbungsbedingungen prüfen und dann das Formular durch Akzeptieren der Praktikumsbewerbungsbedingungen vollständig ausfüllen.',
|
||||
'intern_terms_accept_label' => 'Ich habe das Arbeitsmodell des Remote-Praktikums, die Bewerbungsbedingungen und den HR-Prozessablauf gelesen und akzeptiere sie.',
|
||||
'accept_intern_terms_btn' => 'Bedingungen akzeptieren und zum Bewerbungsformular fortfahren',
|
||||
'intern_step_1_title' => '1. Geschäftsbedingungen',
|
||||
'intern_step_2_title' => '2. Bewerbung abschließen',
|
||||
];
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
// Metadata table labels
|
||||
'field' => 'Feld',
|
||||
'value' => 'Wert',
|
||||
'track' => 'Titel',
|
||||
'style' => 'Stil',
|
||||
'contributors' => 'Mitwirkende',
|
||||
'released_on' => 'Veröffentlicht am',
|
||||
'distributor' => 'Vertriebsfirma',
|
||||
'label' => 'Label',
|
||||
'youtube' => 'YouTube',
|
||||
];
|
||||
?>
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'navigation_group' => 'Corporate',
|
||||
'title' => 'Our Awards',
|
||||
'navigation_label' => 'Our Awards',
|
||||
'model_label' => 'Award',
|
||||
'plural_model_label' => 'Our Awards',
|
||||
|
||||
'create' => 'Add New Award',
|
||||
'edit' => 'Edit Award',
|
||||
'delete' => 'Delete',
|
||||
'restore' => 'Restore',
|
||||
'force_delete' => 'Force Delete',
|
||||
|
||||
'content_section' => 'Award Details',
|
||||
'settings_section' => 'Award Settings',
|
||||
|
||||
'title_field' => 'Award Title',
|
||||
'issuer_field' => 'Issuing Organization',
|
||||
'description_field' => 'Description',
|
||||
'image_field' => 'Award Logo / Badge',
|
||||
'date_field' => 'Award Date',
|
||||
'category_field' => 'Category',
|
||||
'link_field' => 'News / Verification Link',
|
||||
'sort_order_field' => 'Sort Order',
|
||||
'is_featured_field' => 'Feature Award',
|
||||
'is_active_field' => 'Active / Visible',
|
||||
|
||||
'table_image' => 'Logo',
|
||||
'table_title' => 'Award Title',
|
||||
'table_issuer' => 'Issuer',
|
||||
'table_date' => 'Date',
|
||||
'table_category' => 'Category',
|
||||
'table_is_featured' => 'Featured',
|
||||
'table_is_active' => 'Active',
|
||||
|
||||
'created_successfully' => 'Award successfully created.',
|
||||
'updated_successfully' => 'Award successfully updated.',
|
||||
'deleted_successfully' => 'Award successfully deleted.',
|
||||
|
||||
'category_hackathon' => 'Hackathon / Competition',
|
||||
'category_export' => 'Export / Success',
|
||||
'category_innovation' => 'Innovation / R&D',
|
||||
'category_design' => 'Design / UI',
|
||||
'category_general' => 'General Award',
|
||||
];
|
||||
@@ -70,7 +70,7 @@ return [
|
||||
'remote_work_title' => 'Fully Remote Work',
|
||||
'remote_work_details' => 'Team coordination is maintained through daily standup meetings. Working hours are more flexible in some projects. Interns are evaluated in one or more real projects suitable for their CV and skills.',
|
||||
'application_conditions_title' => 'Application Conditions',
|
||||
'condition_not_only_for_internship' => 'Applications from individuals who only wish to do an internship are not accepted. Candidates who are open to development and aim to contribute are our priority.',
|
||||
'condition_not_only_for_internship' => 'Our internship program prioritizes dynamic team members who are open to continuous development, interested in innovation, and aim to actively contribute to projects, rather than candidates who only wish to fulfill academic requirements.',
|
||||
'condition_intent_letter' => 'In the message section, you must provide a letter of intent stating how you will contribute to our projects.',
|
||||
'daily_standup' => 'Daily Standup',
|
||||
'daily_standup_desc' => 'Daily short meetings ensure in-team communication and progress tracking.',
|
||||
@@ -78,4 +78,87 @@ return [
|
||||
'flexible_projects_desc' => 'Flexibility is essential in our projects. You will take part in real projects suitable for your talents.',
|
||||
'focus_on_development' => 'Focus on Development',
|
||||
'intent_letter' => 'Letter of Intent',
|
||||
|
||||
// Statuses
|
||||
'pending' => 'Pending',
|
||||
'reviewed' => 'Reviewed',
|
||||
'rejected' => 'Rejected',
|
||||
'accepted' => 'Accepted',
|
||||
'waiting_document' => 'Waiting for Document',
|
||||
|
||||
// Wizard and Mermaid
|
||||
'step_1_title' => '1. Terms & Conditions',
|
||||
'step_2_title' => '2. Download Forms',
|
||||
'step_3_title' => '3. Complete Application',
|
||||
'kvkk_title' => 'Purpose of Document Collection (KVKK Information)',
|
||||
'kvkk_nda_title' => '1. Non-Disclosure Agreement (NDA)',
|
||||
'kvkk_nda_desc' => 'Requested to ensure the security of our project\'s source codes, database schemas, and trade secrets.',
|
||||
'kvkk_contract_title' => '2. Independent Contractor Agreement',
|
||||
'kvkk_contract_desc' => 'Required to legally secure the conditions and your rights of the issue/task-based flexible working model.',
|
||||
'kvkk_id_title' => '3. Identity Photocopy',
|
||||
'kvkk_id_desc' => 'Requested for legal identity verification, determination of authorized signatory, and prevention of fraudulent applications.',
|
||||
'hr_flow_diagram' => 'HR Progress Diagram',
|
||||
'terms_accept_label' => 'I have read and accept the working model, application conditions, and the HR process flowchart.',
|
||||
'accept_terms_btn' => 'Accept Terms and Proceed',
|
||||
'download_required_documents' => 'Download Required Documents',
|
||||
'download_required_documents_desc' => 'To complete your application, you must download the following legal agreements, read them carefully, sign them, and upload them in the next step.',
|
||||
'nda_card_desc' => 'It is the Non-Disclosure Agreement that is mandatory to sign in order to protect the confidentiality of source codes, data, and processes belonging to Trunçgil Technology projects.',
|
||||
'review_download_document' => 'Review & Download Agreement',
|
||||
'contract_card_desc' => 'It is the Independent Contractor Services Agreement that defines the conditions of job/issue-based remote work, payment terms, and rights of the parties.',
|
||||
'go_back' => 'Go Back',
|
||||
'downloaded_next_btn' => 'I Have Downloaded the Agreements, Proceed to the Last Step',
|
||||
'name_placeholder' => 'e.g.: John Doe',
|
||||
'email_placeholder' => 'e.g.: john@example.com',
|
||||
'phone_placeholder' => 'e.g.: +90 5XX XXX XX XX',
|
||||
'id_photocopy' => 'Identity Photocopy',
|
||||
'id_photocopy_description' => 'Front and back photocopy of national ID, new identity card, or driver\'s license (PDF, JPG, PNG - Max. 5MB)',
|
||||
|
||||
// Mermaid Nodes
|
||||
'mermaid_start' => 'Application and Non-Disclosure Agreement',
|
||||
'mermaid_dec1' => 'Is Candidate Approved?',
|
||||
'mermaid_red1' => 'Rejection - Process Ends',
|
||||
'mermaid_git' => 'GitHub Repo Access Provided',
|
||||
'mermaid_sample' => 'Candidate Sets Up Project and Works on Sample Task',
|
||||
'mermaid_dec2' => 'Sample Task Successfully Completed?',
|
||||
'mermaid_red2' => 'Rejection - Process Ends',
|
||||
'mermaid_issues' => 'Continue to Other Issues',
|
||||
'mermaid_dec3' => 'Did Candidate Select an Issue?',
|
||||
'mermaid_wait' => 'Candidate Waiting or Selects Another Task',
|
||||
'mermaid_assign' => 'Issue Assignment is Done',
|
||||
'mermaid_work' => 'Work Starts',
|
||||
'mermaid_review' => 'Submission and Review',
|
||||
'mermaid_dec4' => 'Is Task Approved?',
|
||||
'mermaid_feedback' => 'Revision Request and Feedback',
|
||||
'mermaid_payment' => 'Fee Payment is Made',
|
||||
|
||||
// Internship Wizard keys
|
||||
'dear_intern' => 'Dear Intern Candidate,',
|
||||
'intern_welcome_text_1' => 'As Trunçgil Technology, we are proud to contribute to the development of young talents through our remote internship program. We evaluate our interns in real projects, providing them with a unique remote working and team coordination experience.',
|
||||
'intern_welcome_text_2' => 'In order for your application to be evaluated, you must first review our working model and application conditions, and then fill out the form completely by accepting the internship application terms.',
|
||||
'intern_terms_accept_label' => 'I have read and accept the remote internship working model, application conditions, and the HR process flow.',
|
||||
'accept_intern_terms_btn' => 'Accept Terms and Proceed to Application Form',
|
||||
'intern_step_1_title' => '1. Terms & Conditions',
|
||||
'intern_step_2_title' => '2. Complete Application',
|
||||
'intern_flow_diagram' => 'Intern Admission and Working System Diagram',
|
||||
|
||||
// Intern Mermaid Nodes
|
||||
'intern_mermaid_start' => 'Internship Application & Document Submission',
|
||||
'intern_mermaid_dec1' => 'Is Onboarding Evaluation Eligible?',
|
||||
'intern_mermaid_red1' => 'Eliminated - Process Ends',
|
||||
'intern_mermaid_doc_upload' => 'Upload University Internship Form',
|
||||
'intern_mermaid_doc_sign' => 'Form Signed by Institution & Downloaded',
|
||||
'intern_mermaid_git' => 'Process Orientation Starts',
|
||||
'intern_mermaid_sample' => 'GIT & Technical Foundations Training',
|
||||
'intern_mermaid_dec2' => 'Has GIT Knowledge?',
|
||||
'intern_mermaid_red2' => 'Eliminated - Process Ends',
|
||||
'intern_mermaid_real' => 'Involvement in Real Projects',
|
||||
'intern_mermaid_dec3' => 'New Task / Issue Selection',
|
||||
'intern_mermaid_wait' => 'Mentor Support & Development',
|
||||
'intern_mermaid_assign' => 'Task Assignment & Coding',
|
||||
'intern_mermaid_work' => 'Coding & Daily Standup',
|
||||
'intern_mermaid_review' => 'Code Review (PR)',
|
||||
'intern_mermaid_dec4' => 'PR Approved (Merged)?',
|
||||
'intern_mermaid_feedback' => 'Revision Request (Feedback)',
|
||||
'intern_mermaid_success' => 'Successful Task & Experience',
|
||||
'intern_mermaid_graduation' => 'Trunçgil Signed Completion Certificate',
|
||||
];
|
||||
|
||||
@@ -130,4 +130,16 @@ return [
|
||||
'youtube_playlist_not_resolved' => 'Could not resolve YouTube Releases playlist ID. Set YOUTUBE_CHANNEL_ID or YOUTUBE_PLAYLIST_ID.',
|
||||
'youtube_no_releases' => 'No releases found in the YouTube Releases playlist.',
|
||||
'youtube_untitled_release' => 'Untitled Release',
|
||||
|
||||
// Metadata table labels
|
||||
'field' => 'Field',
|
||||
'value' => 'Value',
|
||||
'track' => 'Track',
|
||||
'style' => 'Style',
|
||||
'contributors' => 'Contributors',
|
||||
'released_on' => 'Released on',
|
||||
'distributor' => 'Distributor',
|
||||
'label' => 'Label',
|
||||
'youtube' => 'YouTube',
|
||||
];
|
||||
|
||||
|
||||
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'navigation_label' => 'Заявки на вакансии',
|
||||
'model_label' => 'Заявка',
|
||||
'plural_model_label' => 'Заявки на вакансии',
|
||||
'title' => 'Анкета кандидата',
|
||||
'description' => 'Чтобы присоединиться к нашей команде, пожалуйста, заполните форму ниже и загрузите свое резюме.',
|
||||
'job_application_title' => 'Подача заявки на работу',
|
||||
'job_application_description' => 'Чтобы присоединиться к нашей команде, пожалуйста, заполните форму ниже и загрузите свое резюме.',
|
||||
'internship_title' => 'Заявка на стажировку',
|
||||
'internship_description' => 'Узнайте больше о нашей программе дистанционной стажировки и подайте заявку.',
|
||||
'name' => 'Имя и фамилия',
|
||||
'email' => 'Электронная почта',
|
||||
'phone' => 'Телефон',
|
||||
'cv' => 'Резюме (CV)',
|
||||
'nda' => 'Подписанное NDA',
|
||||
'contract' => 'Подписанный договор',
|
||||
'git_knowledge' => 'Знание GIT',
|
||||
'ai_usage' => 'Использование инструментов ИИ',
|
||||
'message' => 'Сообщение',
|
||||
'status' => 'Статус',
|
||||
'type' => 'Тип заявки',
|
||||
'job' => 'Работа',
|
||||
'internship' => 'Стажировка',
|
||||
'submit' => 'Отправить заявку',
|
||||
'success_message' => 'Ваша заявка успешно получена. Спасибо.',
|
||||
'download_cv' => 'Скачать резюме',
|
||||
'created_at' => 'Дата подачи',
|
||||
|
||||
// Intro section
|
||||
'dear_developer' => 'Уважаемый кандидат,',
|
||||
'intro_text_1' => 'Как компания Trunçgil Technology, мы сотрудничаем с независимыми разработчиками всех уровней для разработки нашего программного проекта на базе Laravel. В качестве бизнес-модели применяется <strong>система оплаты на основе задач (issue/task)</strong>, при этом задачи предлагаются кандидатам с заранее определенной стоимостью.',
|
||||
'intro_text_2' => 'Основная причина, по которой мы просим вас предоставить указанную ниже информацию, заключается в необходимости предоставления вам ограниченного доступа к исходному коду нашего проекта на этапе оценки вашей заявки. Поэтому в целях обеспечения юридической безопасности и защиты прав сторон требуется изучить указанные ниже документы: <strong>Соглашение о конфиденциальности (NDA)</strong> и <strong>Соглашение с независимым исполнителем</strong>, а также предоставить их подписанные копии при подаче заявки.',
|
||||
'intro_text_3' => 'Пожалуйста, заполните форму ниже и загрузите подписанные документы в формате PDF единым файлом или zip-архивом.',
|
||||
'intro_text_4' => 'Ваши данные будут использоваться конфиденциально исключительно для процесса рассмотрения заявки и юридической защиты интересов обеих сторон.',
|
||||
'thanks' => 'Спасибо.',
|
||||
'company_details' => 'TRUNÇGİL TECHNOLOGY INDUSTRY AND TRADE LIMITED COMPANY<br>Адрес: Çamtepe Mah. Mahmut Tevfik Atay Bul. Gaziantep Teknopark No: 4A Interior Door No: 1 Şahinbey / Gaziantep<br>Эл. почта: info@truncgil.com.tr<br>ИНН: 8591492435 – Şahinbey V.D. | MERSIS: 0859149243500001',
|
||||
|
||||
// Working model
|
||||
'working_model_title' => 'Наша модель работы',
|
||||
'working_model_subtitle' => 'Удаленная работа на основе задач',
|
||||
'terms_title' => 'Правила и условия',
|
||||
'fully_remote' => 'Полностью удаленно:',
|
||||
'fully_remote_desc' => 'Вы можете выполнять задачи из любой точки мира в удобной для вас рабочей обстановке.',
|
||||
'independent_contractor' => 'Независимый исполнитель:',
|
||||
'independent_contractor_desc' => 'Вы вносите вклад в наши проекты на условиях фриланса.',
|
||||
'mandatory_documents' => 'Обязательные документы:',
|
||||
'mandatory_documents_desc' => 'По соображениям безопасности подписание NDA и Соглашения с независимым исполнителем обязательно.',
|
||||
'nda_label' => 'Соглашение о конфиденциальности (NDA)',
|
||||
'contract_label' => 'Соглашение с независимым исполнителем',
|
||||
|
||||
// Form section
|
||||
'form_title' => 'Форма заявки',
|
||||
'form_subtitle' => 'Пожалуйста, полностью заполните все поля.',
|
||||
'nda_description' => 'Подписанное соглашение о конфиденциальности (PDF, макс. 5 МБ)',
|
||||
'contract_description' => 'Подписанное соглашение с исполнителем (PDF, макс. 5 МБ)',
|
||||
'git_confirmation' => 'Я умею пользоваться системой контроля версий GIT.',
|
||||
'ai_confirmation' => 'Я активно использую инструменты ИИ (Copilot, ChatGPT и др.) в процессах разработки ПО.',
|
||||
'message_placeholder' => 'Ваши навыки, опыт и то, что вы хотите добавить...',
|
||||
'cv_description' => 'PDF, DOC, DOCX (макс. 5 МБ)',
|
||||
|
||||
// Messages
|
||||
'success' => 'Успешно!',
|
||||
'ok' => 'ОК',
|
||||
'error' => 'Ошибка!',
|
||||
'validation_error' => 'Пожалуйста, проверьте форму на наличие ошибок.',
|
||||
'error_message' => 'Произошла ошибка при отправке заявки. Пожалуйста, попробуйте еще раз.',
|
||||
|
||||
'remote_work_title' => 'Полностью удаленная работа',
|
||||
'remote_work_details' => 'Координация команды осуществляется через ежедневные летучки (standup). В некоторых проектах график более гибкий. Стажеры привлекаются к одному или нескольким реальным проектам, соответствующим их резюме и навыкам.',
|
||||
'application_conditions_title' => 'Условия подачи заявки',
|
||||
'condition_not_only_for_internship' => 'Заявки от лиц, желающих пройти стажировку исключительно «ради галочки», не принимаются. В приоритете кандидаты, нацеленные на развитие и готовые приносить пользу проекту.',
|
||||
'condition_intent_letter' => 'В поле сообщения необходимо приложить сопроводительное письмо (сопроводительный текст) с описанием того, какой вклад вы планируете внести в наши проекты.',
|
||||
'daily_standup' => 'Ежедневные летучки',
|
||||
'daily_standup_desc' => 'Короткие ежедневные встречи обеспечивают коммуникацию внутри команды и отслеживание прогресса.',
|
||||
'flexible_projects' => 'Гибкость и проектный подход',
|
||||
'flexible_projects_desc' => 'В наших проектах важна гибкость. Вы будете работать над реальными задачами, соответствующими вашим компетенциям.',
|
||||
'focus_on_development' => 'Ориентация на развитие',
|
||||
'intent_letter' => 'Сопроводительное письмо',
|
||||
|
||||
// Statuses
|
||||
'pending' => 'В ожидании',
|
||||
'reviewed' => 'Рассмотрено',
|
||||
'rejected' => 'Отклонено',
|
||||
'accepted' => 'Принято',
|
||||
'waiting_document' => 'Ожидание документов',
|
||||
|
||||
// Wizard and Mermaid
|
||||
'step_1_title' => '1. Правила и условия',
|
||||
'step_2_title' => '2. Скачать формы',
|
||||
'step_3_title' => '3. Завершить подачу',
|
||||
'kvkk_title' => 'Цель сбора документов (Информация в рамках KVKK)',
|
||||
'kvkk_nda_title' => '1. Соглашение о конфиденциальности (NDA)',
|
||||
'kvkk_nda_desc' => 'Запрашивается для обеспечения безопасности исходных кодов наших проектов, схем баз данных и коммерческих тайн.',
|
||||
'kvkk_contract_title' => '2. Соглашение с независимым исполнителем',
|
||||
'kvkk_contract_desc' => 'Необходимо для юридического закрепления условий и ваших прав в рамках гибкой модели работы на основе задач.',
|
||||
'kvkk_id_title' => '3. Копия удостоверения личности',
|
||||
'kvkk_id_desc' => 'Запрашивается для юридической проверки личности, определения полномочий подписи и предотвращения фиктивных заявок.',
|
||||
'hr_flow_diagram' => 'Схема этапов подбора персонала',
|
||||
'terms_accept_label' => 'Я ознакомился с моделью работы, условиями подачи заявки и схемой процесса подбора и принимаю их.',
|
||||
'accept_terms_btn' => 'Принять условия и продолжить',
|
||||
'download_required_documents' => 'Скачать необходимые документы',
|
||||
'download_required_documents_desc' => 'Для завершения подачи заявки вам необходимо скачать следующие юридические соглашения, внимательно прочитать их, подписать и загрузить на следующем шаге.',
|
||||
'nda_card_desc' => 'Это Соглашение о конфиденциальности (NDA), подписание которого обязательно для защиты конфиденциальности исходных кодов, данных и процессов, относящихся к проектам Trunçgil Technology.',
|
||||
'review_download_document' => 'Просмотреть и скачать соглашение',
|
||||
'contract_card_desc' => 'Это Соглашение об услугах независимого исполнителя, определяющее условия удаленной работы на основе задач, условия оплаты и права сторон.',
|
||||
'go_back' => 'Назад',
|
||||
'downloaded_next_btn' => 'Я скачал соглашения, перейти к последнему шагу',
|
||||
'name_placeholder' => 'Например: Иван Иванов',
|
||||
'email_placeholder' => 'Например: ivan@example.com',
|
||||
'phone_placeholder' => 'Например: +7 9XX XXX XX XX',
|
||||
'id_photocopy' => 'Копия удостоверения личности',
|
||||
'id_photocopy_description' => 'Копия обеих сторон удостоверения личности, новой идентификационной карты или водительского удостоверения (PDF, JPG, PNG - макс. 5 МБ)',
|
||||
|
||||
// Mermaid Nodes
|
||||
'mermaid_start' => 'Заявка и Соглашение о конфиденциальности',
|
||||
'mermaid_dec1' => 'Кандидат утвержден?',
|
||||
'mermaid_red1' => 'Отказ - Процесс завершается',
|
||||
'mermaid_git' => 'Предоставляется доступ к репозиторию GitHub',
|
||||
'mermaid_sample' => 'Кандидат настраивает проект и работает над тестовым заданием',
|
||||
'mermaid_dec2' => 'Тестовое задание успешно выполнено?',
|
||||
'mermaid_red2' => 'Отказ - Процесс завершается',
|
||||
'mermaid_issues' => 'Переход к другим задачам',
|
||||
'mermaid_dec3' => 'Кандидат выбрал задачу?',
|
||||
'mermaid_wait' => 'Кандидат ожидает или выбирает другую задачу',
|
||||
'mermaid_assign' => 'Производится назначение задачи',
|
||||
'mermaid_work' => 'Начинается работа',
|
||||
'mermaid_review' => 'Сдача и рассмотрение',
|
||||
'mermaid_dec4' => 'Задача одобрена?',
|
||||
'mermaid_feedback' => 'Запрос на доработку и обратная связь',
|
||||
'mermaid_payment' => 'Производится выплата вознаграждения',
|
||||
|
||||
// Internship Wizard keys
|
||||
'dear_intern' => 'Уважаемый кандидат на стажировку,',
|
||||
'intern_welcome_text_1' => 'Как компания Trunçgil Technology, мы гордимся тем, что вносим вклад в развитие молодых талантов в рамках нашей программы дистанционной стажировки. Мы привлекаем стажеров к реальным проектам, давая им уникальный опыт удаленной работы и координации в команде.',
|
||||
'intern_welcome_text_2' => 'Для оценки вашей заявки вам необходимо сначала ознакомиться с нашей моделью работы и условиями стажировки, а затем полностью заполнить форму, подтвердив согласие с условиями.',
|
||||
'intern_terms_accept_label' => 'Я ознакомился с моделью дистанционной стажировки, условиями подачи заявки и этапами подбора персонала и принимаю их.',
|
||||
'accept_intern_terms_btn' => 'Принять условия и перейти к анкете',
|
||||
'intern_step_1_title' => '1. Правила и условия',
|
||||
'intern_step_2_title' => '2. Завершить подачу',
|
||||
];
|
||||
@@ -78,4 +78,65 @@ return [
|
||||
'flexible_projects_desc' => 'Flexibilitet är avgörande i våra projekt. Du kommer att delta i verkliga projekt som är lämpliga för dina talenter.',
|
||||
'focus_on_development' => 'Fokus på utveckling',
|
||||
'intent_letter' => 'Personligt brev',
|
||||
|
||||
// Statuses
|
||||
'pending' => 'Väntar',
|
||||
'reviewed' => 'Granskad',
|
||||
'rejected' => 'Avvisad',
|
||||
'accepted' => 'Accepterad',
|
||||
'waiting_document' => 'Väntar på dokument',
|
||||
|
||||
// Wizard and Mermaid
|
||||
'step_1_title' => '1. Regler & Villkor',
|
||||
'step_2_title' => '2. Ladda ner blanketter',
|
||||
'step_3_title' => '3. Slutför ansökan',
|
||||
'kvkk_title' => 'Syfte med dokumentinsamling (KVKK-information)',
|
||||
'kvkk_nda_title' => '1. Sekretessavtal (NDA)',
|
||||
'kvkk_nda_desc' => 'Krävs för att säkerställa säkerheten för våra projekts källkoder, databasscheman och affärshemligheter.',
|
||||
'kvkk_contract_title' => '2. Avtal för oberoende uppdragstagare',
|
||||
'kvkk_contract_desc' => 'Krävs för att juridiskt säkra villkoren och dina rättigheter för den uppdragsbaserade flexibla arbetsmodellen.',
|
||||
'kvkk_id_title' => '3. Kopia på ID-handling',
|
||||
'kvkk_id_desc' => 'Krävs för laglig identitetsverifiering, fastställande av behörig firmatecknare och för att förhindra bedrägliga ansökningar.',
|
||||
'hr_flow_diagram' => 'HR Processdiagram',
|
||||
'terms_accept_label' => 'Jag har läst och godkänner arbetsmodellen, ansökningsvillkoren och HR-processflödet.',
|
||||
'accept_terms_btn' => 'Godkänn villkoren och fortsätt',
|
||||
'download_required_documents' => 'Ladda ner nödvändiga dokument',
|
||||
'download_required_documents_desc' => 'För att slutföra din ansökan måste du ladda ner följande juridiska avtal, läsa dem noggrant, signera dem och ladda upp dem i nästa steg.',
|
||||
'nda_card_desc' => 'Detta är sekretessavtalet (NDA) som måste undertecknas för att skydda källkoder, data och processer som tillhör Trunçgil Teknologis projekt.',
|
||||
'review_download_document' => 'Granska & ladda ner avtalet',
|
||||
'contract_card_desc' => 'Detta är avtalet för oberoende uppdragstagare som definierar villkoren för den uppdragsbaserade distansarbetet, betalningsvillkoren och parternas rättigheter.',
|
||||
'go_back' => 'Gå tillbaka',
|
||||
'downloaded_next_btn' => 'Jag har laddat ner avtalen, gå till sista steget',
|
||||
'name_placeholder' => 't.ex.: Sven Svensson',
|
||||
'email_placeholder' => 't.ex.: sven@example.com',
|
||||
'phone_placeholder' => 't.ex.: +46 7XX XXX XX XX',
|
||||
'id_photocopy' => 'Kopia på ID-handling',
|
||||
'id_photocopy_description' => 'Fram- och baksida på ID-kort, nytt identitetskort eller körkort (PDF, JPG, PNG - Max 5MB)',
|
||||
|
||||
// Mermaid Nodes
|
||||
'mermaid_start' => 'Ansökan och sekretessavtal',
|
||||
'mermaid_dec1' => 'Är kandidaten godkänd?',
|
||||
'mermaid_red1' => 'Avslag - Processen avslutas',
|
||||
'mermaid_git' => 'GitHub Repo-åtkomst beviljas',
|
||||
'mermaid_sample' => 'Kandidaten sätter upp projektet och arbetar på en exempeluppgift',
|
||||
'mermaid_dec2' => 'Är exempeluppgiften framgångsrikt slutförd?',
|
||||
'mermaid_red2' => 'Avslag - Processen avslutas',
|
||||
'mermaid_issues' => 'Fortsätt till andra uppdrag',
|
||||
'mermaid_dec3' => 'Har kandidaten valt ett uppdrag?',
|
||||
'mermaid_wait' => 'Kandidaten väntar eller väljer ett annat uppdrag',
|
||||
'mermaid_assign' => 'Uppdraget tilldelas',
|
||||
'mermaid_work' => 'Arbetet påbörjas',
|
||||
'mermaid_review' => 'Inlämning och granskning',
|
||||
'mermaid_dec4' => 'Är uppdraget godkänt?',
|
||||
'mermaid_feedback' => 'Begäran om korrigering och feedback',
|
||||
'mermaid_payment' => 'Arvode betalas ut',
|
||||
|
||||
// Internship Wizard keys
|
||||
'dear_intern' => 'Bästa praktikantkandidat,',
|
||||
'intern_welcome_text_1' => 'Som Trunçgil Technology är vi stolta över att bidra till utvecklingen av unga talanger genom vårt distanspraktikprogram. Vi utvärderar våra praktikanter i verkliga projekt och ger dem en unik erfarenhet av distansarbete och teamkoordinering.',
|
||||
'intern_welcome_text_2' => 'För att din ansökan ska kunna utvärderas måste du först granska vår arbetsmodell och ansökningsvillkor, och sedan fylla i formuläret fullständigt genom att acceptera villkoren för praktikansökan.',
|
||||
'intern_terms_accept_label' => 'Jag har läst och godkänner arbetsmodellen för distanspraktik, ansökningsvillkoren och HR-processflödet.',
|
||||
'accept_intern_terms_btn' => 'Godkänn villkoren och gå till ansökningsformuläret',
|
||||
'intern_step_1_title' => '1. Regler & Villkor',
|
||||
'intern_step_2_title' => '2. Slutför ansökan',
|
||||
];
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'navigation_group' => 'Kurumsal',
|
||||
'title' => 'Ödüllerimiz',
|
||||
'navigation_label' => 'Ödüllerimiz',
|
||||
'model_label' => 'Ödül',
|
||||
'plural_model_label' => 'Ödüllerimiz',
|
||||
|
||||
'create' => 'Yeni Ödül Ekle',
|
||||
'edit' => 'Ödülü Düzenle',
|
||||
'delete' => 'Sil',
|
||||
'restore' => 'Geri Yükle',
|
||||
'force_delete' => 'Kalıcı Olarak Sil',
|
||||
|
||||
'content_section' => 'Ödül Bilgileri',
|
||||
'settings_section' => 'Ödül Ayarları',
|
||||
|
||||
'title_field' => 'Ödül Adı',
|
||||
'issuer_field' => 'Ödülü Veren Kurum',
|
||||
'description_field' => 'Açıklama',
|
||||
'image_field' => 'Ödül Görseli / Logo',
|
||||
'date_field' => 'Ödül Tarihi',
|
||||
'category_field' => 'Kategori',
|
||||
'link_field' => 'Haber / Doğrulama Linki',
|
||||
'sort_order_field' => 'Sıralama',
|
||||
'is_featured_field' => 'Öne Çıkar',
|
||||
'is_active_field' => 'Aktif / Görünür',
|
||||
|
||||
'table_image' => 'Logo',
|
||||
'table_title' => 'Ödül Adı',
|
||||
'table_issuer' => 'Veren Kurum',
|
||||
'table_date' => 'Tarih',
|
||||
'table_category' => 'Kategori',
|
||||
'table_is_featured' => 'Öne Çıkan',
|
||||
'table_is_active' => 'Aktif',
|
||||
|
||||
'created_successfully' => 'Ödül başarıyla eklendi.',
|
||||
'updated_successfully' => 'Ödül başarıyla güncellendi.',
|
||||
'deleted_successfully' => 'Ödül başarıyla silindi.',
|
||||
|
||||
'category_hackathon' => 'Hackathon / Yarışma',
|
||||
'category_export' => 'İhracat / Başarı',
|
||||
'category_innovation' => 'İnovasyon / Ar-Ge',
|
||||
'category_design' => 'Tasarım / Arayüz',
|
||||
'category_general' => 'Genel Ödül',
|
||||
];
|
||||
@@ -70,7 +70,7 @@ return [
|
||||
'remote_work_title' => 'Tamamen Uzaktan Çalışma',
|
||||
'remote_work_details' => 'Günlük standup toplantıları ile ekip koordinasyonu sağlanır. Bazı projelerde çalışma saatleri daha esnektir. Stajyerler, CV\'lerine ve yetkinliklerine uygun olan bir veya birden fazla gerçek projede değerlendirilir.',
|
||||
'application_conditions_title' => 'Başvuru Şartları',
|
||||
'condition_not_only_for_internship' => 'Yalnızca staj yapmak için yapmak isteyen kişiler alınmamaktadır. Gelişime açık ve katkı sağlamayı hedefleyen adaylar önceliğimizdir.',
|
||||
'condition_not_only_for_internship' => 'Staj programımız, yalnızca akademik zorunlulukları yerine getirmek isteyen adaylardan ziyade; sürekli gelişime açık, inovasyona ilgi duyan ve projelere aktif katkı sağlamayı hedefleyen dinamik takım arkadaşlarına öncelik tanımaktadır.',
|
||||
'condition_intent_letter' => 'Mesaj bölümünde projelerimize nasıl bir katkı sağlayacağınızı belirten bir niyet mektubu iletmeniz gerekmektedir.',
|
||||
'daily_standup' => 'Günlük Standup',
|
||||
'daily_standup_desc' => 'Her gün düzenlenen kısa toplantılarla ekip içi iletişim ve ilerleme takibi sağlanır.',
|
||||
@@ -78,4 +78,87 @@ return [
|
||||
'flexible_projects_desc' => 'Projelerimizde esneklik esastır. Yeteneklerinize uygun gerçek projelerde görev alırsınız.',
|
||||
'focus_on_development' => 'Gelişim Odaklılık',
|
||||
'intent_letter' => 'Niyet Mektubu',
|
||||
|
||||
// Statuses
|
||||
'pending' => 'Beklemede',
|
||||
'reviewed' => 'İncelendi',
|
||||
'rejected' => 'Reddedildi',
|
||||
'accepted' => 'Kabul Edildi',
|
||||
'waiting_document' => 'İmzalı Staj Formu Bekleniyor',
|
||||
|
||||
// Wizard and Mermaid
|
||||
'step_1_title' => '1. Şartlar & Koşullar',
|
||||
'step_2_title' => '2. Formları İndir',
|
||||
'step_3_title' => '3. Başvuruyu Tamamla',
|
||||
'kvkk_title' => 'Belgelerin Toplanma Amacı (KVKK Bilgilendirmesi)',
|
||||
'kvkk_nda_title' => '1. Gizlilik Sözleşmesi (NDA)',
|
||||
'kvkk_nda_desc' => 'Projelerimize ait kaynak kodları, veritabanı şemaları ve ticari sırlarımızın güvenliğini sağlamak amacıyla istenir.',
|
||||
'kvkk_contract_title' => '2. Bağımsız Sözleşmeli Sözleşmesi',
|
||||
'kvkk_contract_desc' => 'Issue/task bazlı esnek çalışma modelinin koşullarını ve haklarınızı yasal olarak güvence altına almak için gereklidir.',
|
||||
'kvkk_id_title' => '3. Kimlik Fotokopisi',
|
||||
'kvkk_id_desc' => 'Yasal kimlik doğrulama, imza yetkilisi tespiti ve sahte başvuruların önlenmesi amacıyla talep edilmektedir.',
|
||||
'hr_flow_diagram' => 'İK İlerleme Diyagramı',
|
||||
'terms_accept_label' => 'Çalışma modelini, başvuru şartlarını ve İK süreç akış şemasını okudum, kabul ediyorum.',
|
||||
'accept_terms_btn' => 'Şartları Kabul Et ve İlerle',
|
||||
'download_required_documents' => 'Gerekli Belgeleri İndirin',
|
||||
'download_required_documents_desc' => 'Başvurunuzu tamamlayabilmek için aşağıdaki yasal sözleşmeleri indirip, dikkatlice okuyup imzalayarak bir sonraki adımda sisteme yüklemeniz gerekmektedir.',
|
||||
'nda_card_desc' => 'Trunçgil Teknoloji projelerine ait kaynak kodlarının, verilerin ve süreçlerin gizliliğini korumak amacıyla imzalanması zorunlu olan Gizlilik Sözleşmesi\'dir.',
|
||||
'review_download_document' => 'Sözleşmeyi İncele & İndir',
|
||||
'contract_card_desc' => 'İş/Issue bazlı uzaktan çalışma koşullarını, ödeme şartlarını ve tarafların haklarını tanımlayan Bağımsız Sözleşmeli Hizmet Sözleşmesi\'dir.',
|
||||
'go_back' => 'Geri Dön',
|
||||
'downloaded_next_btn' => 'Sözleşmeleri İndirdim, Son Adıma Geç',
|
||||
'name_placeholder' => 'Örn: Ahmet Yılmaz',
|
||||
'email_placeholder' => 'Örn: ahmet@example.com',
|
||||
'phone_placeholder' => 'Örn: 05XX XXX XX XX',
|
||||
'id_photocopy' => 'Kimlik Fotokopisi',
|
||||
'id_photocopy_description' => 'Önlü arkalı nüfus cüzdanı, yeni kimlik kartı veya ehliyet fotokopisi (PDF, JPG, PNG - Maks. 5MB)',
|
||||
|
||||
// Mermaid Nodes
|
||||
'mermaid_start' => 'Başvuru ve Gizlilik Sözleşmesi',
|
||||
'mermaid_dec1' => 'Aday Onaylandı mı?',
|
||||
'mermaid_red1' => 'Red - Süreç Sonlanır',
|
||||
'mermaid_git' => 'GitHub Repo Erişimi Sağlanır',
|
||||
'mermaid_sample' => 'Aday Projeyi Kurar ve Örnek Görev Üzerinde Çalışır',
|
||||
'mermaid_dec2' => 'Örnek Görev Başarıyla Tamamlandı mı?',
|
||||
'mermaid_red2' => 'Red - Süreç Sonlanır',
|
||||
'mermaid_issues' => 'Diğer Issue\'lara Devam',
|
||||
'mermaid_dec3' => 'Aday Issue Seçti mi?',
|
||||
'mermaid_wait' => 'Aday Beklemede veya Başka Görev Seçer',
|
||||
'mermaid_assign' => 'Issue Ataması Yapılır',
|
||||
'mermaid_work' => 'Çalışma Başlar',
|
||||
'mermaid_review' => 'Teslim ve İnceleme',
|
||||
'mermaid_dec4' => 'Görev Onaylandı mı?',
|
||||
'mermaid_feedback' => 'Düzeltme Talebi ve Geri Bildirim',
|
||||
'mermaid_payment' => 'Ücret Ödemesi Yapılır',
|
||||
|
||||
// Internship Wizard keys
|
||||
'dear_intern' => 'Değerli Stajyer Adayı,',
|
||||
'intern_welcome_text_1' => 'Trunçgil Teknoloji olarak, uzaktan staj programımız aracılığıyla genç yeteneklerin gelişimine katkıda bulunmaktan gurur duyuyoruz. Stajyerlerimizi gerçek projelerde değerlendirerek onlara eşsiz bir uzaktan çalışma ve ekip koordinasyonu deneyimi kazandırıyoruz.',
|
||||
'intern_welcome_text_2' => 'Başvurunuzun değerlendirilebilmesi için öncelikle çalışma modelimizi ve başvuru şartlarımızı incelemeniz, ardından staj başvuru şartlarını kabul ederek formu eksiksiz doldurmanız gerekmektedir.',
|
||||
'intern_terms_accept_label' => 'Uzaktan staj çalışma modelini, başvuru şartlarını ve İK süreç akışını okudum, kabul ediyorum.',
|
||||
'accept_intern_terms_btn' => 'Şartları Kabul Et ve Başvuru Formuna Geç',
|
||||
'intern_step_1_title' => '1. Şartlar & Koşullar',
|
||||
'intern_step_2_title' => '2. Başvuruyu Tamamla',
|
||||
'intern_flow_diagram' => 'Stajyer Kabul ve Çalışma Sistemi Diyagramı',
|
||||
|
||||
// Intern Mermaid Nodes
|
||||
'intern_mermaid_start' => 'Staj Başvurusu ve Evrak İletimi',
|
||||
'intern_mermaid_dec1' => 'Ön Değerlendirme Uygun mu?',
|
||||
'intern_mermaid_red1' => 'Elendi - Süreç Sonlanır',
|
||||
'intern_mermaid_doc_upload' => 'Üniversite Staj Formunun Yüklenmesi',
|
||||
'intern_mermaid_doc_sign' => 'Formun Kurumca İmzalanması & İndirilmesi',
|
||||
'intern_mermaid_git' => 'Süreç Oryantasyonu Başlar',
|
||||
'intern_mermaid_sample' => 'GIT ve Teknik Temel Eğitimi',
|
||||
'intern_mermaid_dec2' => 'GIT Bilgisi Var mı?',
|
||||
'intern_mermaid_red2' => 'Elendi - Süreç Sonlanır',
|
||||
'intern_mermaid_real' => 'Gerçek Projeye Dahil Edilme',
|
||||
'intern_mermaid_dec3' => 'Yeni Görev / Issue Seçimi',
|
||||
'intern_mermaid_wait' => 'Mentör Desteği ve Geliştirme',
|
||||
'intern_mermaid_assign' => 'Görev Ataması ve Kodlama',
|
||||
'intern_mermaid_work' => 'Çalışma ve Günlük Standup',
|
||||
'intern_mermaid_review' => 'Kod İncelemesi (Code Review)',
|
||||
'intern_mermaid_dec4' => 'PR Onaylandı mı (Merge)?',
|
||||
'intern_mermaid_feedback' => 'Düzeltme Talebi (Revizyon)',
|
||||
'intern_mermaid_success' => 'Başarılı Görev & Deneyim',
|
||||
'intern_mermaid_graduation' => 'Trunçgil İmzalı Staj Bitirme Sertifikası',
|
||||
];
|
||||
|
||||
@@ -109,7 +109,16 @@ return [
|
||||
'spotify_no_albums' => 'Spotify sanatçı hesabında albüm veya single bulunamadı.',
|
||||
'spotify_untitled_album' => 'İsimsiz Albüm',
|
||||
|
||||
// YouTube
|
||||
// Metadata table labels
|
||||
'field' => 'Alan',
|
||||
'value' => 'Değer',
|
||||
'track' => 'Parça',
|
||||
'style' => 'Stil',
|
||||
'contributors' => 'Katkıda Bulunanlar',
|
||||
'released_on' => 'Yayın Tarihi',
|
||||
'distributor' => 'Dağıtıcı',
|
||||
'label' => 'Etiket',
|
||||
|
||||
'youtube_section' => 'YouTube Bilgileri',
|
||||
'youtube_video_id_field' => 'YouTube Video ID',
|
||||
'youtube_url_field' => 'YouTube URL',
|
||||
|
||||
@@ -1,38 +1,38 @@
|
||||
@import url(https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@1,300;1,400;1,500;1,600;1,700);
|
||||
@import url(https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@1,300;1,400;1,500;1,600;1,700&display=swap);
|
||||
@font-face {
|
||||
font-family: 'Space Grotesk';
|
||||
src: url(../../fonts/space/SpaceGrotesk-SemiBold.woff2) format('woff2'), url(../../fonts/space/SpaceGrotesk-SemiBold.woff) format('woff');
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
font-display: block
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Space Grotesk';
|
||||
src: url(../../fonts/space/SpaceGrotesk-Light.woff2) format('woff2'), url(../../fonts/space/SpaceGrotesk-Light.woff) format('woff');
|
||||
font-weight: 300;
|
||||
font-style: normal;
|
||||
font-display: block
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Space Grotesk';
|
||||
src: url(../../fonts/space/SpaceGrotesk-Bold.woff2) format('woff2'), url(../../fonts/space/SpaceGrotesk-Bold.woff) format('woff');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: block
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Space Grotesk';
|
||||
src: url(../../fonts/space/SpaceGrotesk-Medium.woff2) format('woff2'), url(../../fonts/space/SpaceGrotesk-Medium.woff) format('woff');
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
font-display: block
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Space Grotesk';
|
||||
src: url(../../fonts/space/SpaceGrotesk-Regular.woff2) format('woff2'), url(../../fonts/space/SpaceGrotesk-Regular.woff) format('woff');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: block
|
||||
font-display: swap;
|
||||
}
|
||||
* {
|
||||
word-spacing: normal !important
|
||||
|
||||
@@ -3,70 +3,70 @@
|
||||
src: url(../../fonts/urbanist/Urbanist-BoldItalic.woff2) format('woff2'), url(../../fonts/urbanist/Urbanist-BoldItalic.woff) format('woff');
|
||||
font-weight: 700;
|
||||
font-style: italic;
|
||||
font-display: block
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: Urbanist;
|
||||
src: url(../../fonts/urbanist/Urbanist-SemiBoldItalic.woff2) format('woff2'), url(../../fonts/urbanist/Urbanist-SemiBoldItalic.woff) format('woff');
|
||||
font-weight: 600;
|
||||
font-style: italic;
|
||||
font-display: block
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: Urbanist;
|
||||
src: url(../../fonts/urbanist/Urbanist-Medium.woff2) format('woff2'), url(../../fonts/urbanist/Urbanist-Medium.woff) format('woff');
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
font-display: block
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: Urbanist;
|
||||
src: url(../../fonts/urbanist/Urbanist-MediumItalic.woff2) format('woff2'), url(../../fonts/urbanist/Urbanist-MediumItalic.woff) format('woff');
|
||||
font-weight: 500;
|
||||
font-style: italic;
|
||||
font-display: block
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: Urbanist;
|
||||
src: url(../../fonts/urbanist/Urbanist-SemiBold.woff2) format('woff2'), url(../../fonts/urbanist/Urbanist-SemiBold.woff) format('woff');
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
font-display: block
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: Urbanist;
|
||||
src: url(../../fonts/urbanist/Urbanist-Italic.woff2) format('woff2'), url(../../fonts/urbanist/Urbanist-Italic.woff) format('woff');
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
font-display: block
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: Urbanist;
|
||||
src: url(../../fonts/urbanist/Urbanist-Regular.woff2) format('woff2'), url(../../fonts/urbanist/Urbanist-Regular.woff) format('woff');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: block
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: Urbanist;
|
||||
src: url(../../fonts/urbanist/Urbanist-LightItalic.woff2) format('woff2'), url(../../fonts/urbanist/Urbanist-LightItalic.woff) format('woff');
|
||||
font-weight: 300;
|
||||
font-style: italic;
|
||||
font-display: block
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: Urbanist;
|
||||
src: url(../../fonts/urbanist/Urbanist-Light.woff2) format('woff2'), url(../../fonts/urbanist/Urbanist-Light.woff) format('woff');
|
||||
font-weight: 300;
|
||||
font-style: normal;
|
||||
font-display: block
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: Urbanist;
|
||||
src: url(../../fonts/urbanist/Urbanist-Bold.woff2) format('woff2'), url(../../fonts/urbanist/Urbanist-Bold.woff) format('woff');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: block
|
||||
font-display: swap;
|
||||
}
|
||||
* {
|
||||
word-spacing: normal !important
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
src:url(Unicons.woff2) format("woff2"),url(Unicons.woff) format("woff");
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
font-display:block
|
||||
font-display:swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family:Custom;
|
||||
src:url(../custom/Custom.woff2) format("woff2"),url(../custom/Custom.woff) format("woff");
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
font-display:block
|
||||
font-display:swap;
|
||||
}
|
||||
|
After Width: | Height: | Size: 7.8 MiB |
|
After Width: | Height: | Size: 548 KiB |
|
After Width: | Height: | Size: 7.9 MiB |
|
After Width: | Height: | Size: 740 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 472 KiB |
|
After Width: | Height: | Size: 240 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 816 KiB |
|
After Width: | Height: | Size: 752 KiB |
|
After Width: | Height: | Size: 704 KiB |
@@ -0,0 +1 @@
|
||||
google-site-verification: googlef1M6GQLxVA5g7IaVY6kMQCoIrgADR6HjrOZu79CrXYc.html
|
||||
@@ -1,2 +1,6 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
Allow: /
|
||||
Disallow: /admin/
|
||||
Disallow: /stajyer/admin/
|
||||
|
||||
Sitemap: https://truncgil.com/sitemap.xml
|
||||
|
||||
@@ -1,15 +1,6 @@
|
||||
<div class="navbar-other !flex !ml-auto">
|
||||
<ul class="navbar-nav !flex-row !items-center !ml-auto">
|
||||
<li class="nav-item hidden lg:!block xl:!block">
|
||||
<nav class="nav social social-muted justify-end text-right">
|
||||
<?php $social_media = json_decode(setting('social_links'), true); ?>
|
||||
<a class="m-[0_0_0_.7rem] text-[1rem] transition-all duration-[0.2s] ease-in-out translate-y-0 hover:translate-y-[-0.15rem]" href="{{ !empty($social_media['Twitter']) ? $social_media['Twitter'] : '#' }}" target="_blank" rel="noopener noreferrer" aria-label="{{ t('Twitter') }}"><i class="uil uil-twitter before:content-['\ed59'] text-[1rem] !text-[#5daed5]" aria-hidden="true"></i></a>
|
||||
<a class="m-[0_0_0_.7rem] text-[1rem] transition-all duration-[0.2s] ease-in-out translate-y-0 hover:translate-y-[-0.15rem]" href="{{ !empty($social_media['Facebook']) ? $social_media['Facebook'] : '#' }}" target="_blank" rel="noopener noreferrer" aria-label="{{ t('Facebook') }}"><i class="uil uil-facebook-f before:content-['\eae2'] text-[1rem] !text-[#4470cf]" aria-hidden="true"></i></a>
|
||||
<a class="m-[0_0_0_.7rem] text-[1rem] transition-all duration-[0.2s] ease-in-out translate-y-0 hover:translate-y-[-0.15rem]" href="{{ !empty($social_media['Github']) ? $social_media['Github'] : '#' }}" target="_blank" rel="noopener noreferrer" aria-label="{{ t('GitHub') }}"><i class="uil uil-github before:content-['\eb40'] text-[1rem] !text-[#e94d88]" aria-hidden="true"></i></a>
|
||||
<a class="m-[0_0_0_.7rem] text-[1rem] transition-all duration-[0.2s] ease-in-out translate-y-0 hover:translate-y-[-0.15rem]" href="{{ !empty($social_media['Instagram']) ? $social_media['Instagram'] : '#' }}" target="_blank" rel="noopener noreferrer" aria-label="{{ t('Instagram') }}"><i class="uil uil-instagram before:content-['\eb9c'] text-[1rem] !text-[#d53581]" aria-hidden="true"></i></a>
|
||||
</nav>
|
||||
<!-- /.social -->
|
||||
</li>
|
||||
|
||||
<li class="nav-item xl:!hidden lg:!hidden">
|
||||
<button class="hamburger offcanvas-nav-btn" type="button" aria-label="{{ t('Menüyü aç') }}"><span></span></button>
|
||||
</li>
|
||||
|
||||
@@ -69,14 +69,7 @@ $isHomepage = $currentRoute === 'homepage' || $currentPath === '/' || request()-
|
||||
<div>
|
||||
<a href="mailto:{{setting('contact_email')}}" class="link-inverse">{{setting('contact_email')}}</a>
|
||||
<br> <a href="tel:{{setting('contact_phone')}}">{{setting('contact_phone')}}</a> <br>
|
||||
<nav class="nav social social-white !mt-4">
|
||||
<?php $social_media = json_decode(setting('social_links'), true); ?>
|
||||
<a class="!text-[#cacaca] text-[1rem] transition-all duration-[0.2s] ease-in-out translate-y-0 motion-reduce:transition-none hover:translate-y-[-0.15rem] m-[0_.7rem_0_0]" href="{{ !empty($social_media['Twitter']) ? $social_media['Twitter'] : '#' }}" target="_blank" rel="noopener noreferrer" aria-label="{{ t('Twitter') }}"><i class="uil uil-twitter before:content-['\ed59'] !text-white text-[1rem]" aria-hidden="true"></i></a>
|
||||
<a class="!text-[#cacaca] text-[1rem] transition-all duration-[0.2s] ease-in-out translate-y-0 motion-reduce:transition-none hover:translate-y-[-0.15rem] m-[0_.7rem_0_0]" href="{{ !empty($social_media['Facebook']) ? $social_media['Facebook'] : '#' }}" target="_blank" rel="noopener noreferrer" aria-label="{{ t('Facebook') }}"><i class="uil uil-facebook-f before:content-['\eae2'] !text-white text-[1rem]" aria-hidden="true"></i></a>
|
||||
<a class="!text-[#cacaca] text-[1rem] transition-all duration-[0.2s] ease-in-out translate-y-0 motion-reduce:transition-none hover:translate-y-[-0.15rem] m-[0_.7rem_0_0]" href="{{ !empty($social_media['Github']) ? $social_media['Github'] : '#' }}" target="_blank" rel="noopener noreferrer" aria-label="{{ t('GitHub') }}"><i class="uil uil-github before:content-['\eb40'] !text-white text-[1rem]" aria-hidden="true"></i></a>
|
||||
<a class="!text-[#cacaca] text-[1rem] transition-all duration-[0.2s] ease-in-out translate-y-0 motion-reduce:transition-none hover:translate-y-[-0.15rem] m-[0_.7rem_0_0]" href="{{ !empty($social_media['Instagram']) ? $social_media['Instagram'] : '#' }}" target="_blank" rel="noopener noreferrer" aria-label="{{ t('Instagram') }}"><i class="uil uil-instagram before:content-['\eb9c'] !text-white text-[1rem]" aria-hidden="true"></i></a>
|
||||
<a class="!text-[#cacaca] text-[1rem] transition-all duration-[0.2s] ease-in-out translate-y-0 motion-reduce:transition-none hover:translate-y-[-0.15rem] m-[0_.7rem_0_0]" href="{{ !empty($social_media['Youtube']) ? $social_media['Youtube'] : '#' }}" target="_blank" rel="noopener noreferrer" aria-label="{{ t('YouTube') }}"><i class="uil uil-youtube before:content-['\edb5'] !text-white text-[1rem]" aria-hidden="true"></i></a>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -105,34 +98,6 @@ $isHomepage = $currentRoute === 'homepage' || $currentPath === '/' || request()-
|
||||
|
||||
<!-- Social Media & Language on Right -->
|
||||
<div class="flex items-center gap-4">
|
||||
<nav class="nav social flex items-center gap-2">
|
||||
<?php $social_media = json_decode(setting('social_links'), true); ?>
|
||||
@if(!empty($social_media['Twitter']))
|
||||
<a class="!text-[#5daed5] hover:!text-[#3b9ec9] text-[1.1rem] transition-colors" href="{{ $social_media['Twitter'] }}" target="_blank" rel="noopener noreferrer" aria-label="{{ t('Twitter') }}">
|
||||
<i class="uil uil-twitter" aria-hidden="true"></i>
|
||||
</a>
|
||||
@endif
|
||||
@if(!empty($social_media['Facebook']))
|
||||
<a class="!text-[#4470cf] hover:!text-[#3259b8] text-[1.1rem] transition-colors" href="{{ $social_media['Facebook'] }}" target="_blank" rel="noopener noreferrer" aria-label="{{ t('Facebook') }}">
|
||||
<i class="uil uil-facebook-f" aria-hidden="true"></i>
|
||||
</a>
|
||||
@endif
|
||||
@if(!empty($social_media['Github']))
|
||||
<a class="!text-[#343a40] hover:!text-[#23272b] text-[1.1rem] transition-colors" href="{{ $social_media['Github'] }}" target="_blank" rel="noopener noreferrer" aria-label="{{ t('GitHub') }}">
|
||||
<i class="uil uil-github" aria-hidden="true"></i>
|
||||
</a>
|
||||
@endif
|
||||
@if(!empty($social_media['Instagram']))
|
||||
<a class="!text-[#d53581] hover:!text-[#c12570] text-[1.1rem] transition-colors" href="{{ $social_media['Instagram'] }}" target="_blank" rel="noopener noreferrer" aria-label="{{ t('Instagram') }}">
|
||||
<i class="uil uil-instagram" aria-hidden="true"></i>
|
||||
</a>
|
||||
@endif
|
||||
@if(!empty($social_media['Youtube']))
|
||||
<a class="!text-[#c8312b] hover:!text-[#b02822] text-[1.1rem] transition-colors" href="{{ $social_media['Youtube'] }}" target="_blank" rel="noopener noreferrer" aria-label="{{ t('YouTube') }}">
|
||||
<i class="uil uil-youtube" aria-hidden="true"></i>
|
||||
</a>
|
||||
@endif
|
||||
</nav>
|
||||
<x-custom.language-selector />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -2,79 +2,128 @@
|
||||
|
||||
@php
|
||||
$hasChildren = $item->children->isNotEmpty();
|
||||
$isMegaMenu = $item->slug === 'urunlerimiz';
|
||||
$isMegaMenu = $item->slug === 'cozumlerimiz' || $item->slug === 'urunlerimiz';
|
||||
$isCareer = $item->slug === 'kariyer';
|
||||
|
||||
$categories = [];
|
||||
$products = [];
|
||||
$services = [];
|
||||
$featuredProducts = [];
|
||||
$projectLinks = [];
|
||||
|
||||
if($isMegaMenu) {
|
||||
$categories = \App\Models\ProductCategory::where('is_active', true)->orderBy('sort_order')->get();
|
||||
$products = \App\Models\Product::where('is_active', true)->where('type', 'product')->orderBy('sort_order')->limit(10)->get();
|
||||
$services = \App\Models\Product::where('is_active', true)->where('type', 'service')->orderBy('sort_order')->limit(10)->get();
|
||||
$featuredProducts = \App\Models\Product::where('is_active', true)->where('type', '!=', 'service')->inRandomOrder()->limit(6)->get();
|
||||
|
||||
$locale = app()->getLocale();
|
||||
$projectLinks = [
|
||||
[
|
||||
'title' => $locale === 'tr' ? 'Müzik Yapımlarımız' : ($locale === 'se' ? 'Våra musikproduktioner' : 'Our Music Productions'),
|
||||
'url' => route('music-productions.index'),
|
||||
'badge' => $locale === 'tr' ? 'Sanat' : ($locale === 'se' ? 'Konst' : 'Art'),
|
||||
'icon' => 'uil-music'
|
||||
],
|
||||
[
|
||||
'title' => $locale === 'tr' ? 'Kitaplarımız' : ($locale === 'se' ? 'Våra böcker' : 'Our Books'),
|
||||
'url' => route('page.show', 'kitaplarimiz'),
|
||||
'badge' => null,
|
||||
'icon' => 'uil-book-open'
|
||||
],
|
||||
[
|
||||
'title' => $locale === 'tr' ? 'Ödüllerimiz' : ($locale === 'se' ? 'Våra utmärkelser' : 'Our Awards'),
|
||||
'url' => route('page.show', 'odullerimiz'),
|
||||
'badge' => $locale === 'tr' ? 'Başarı' : ($locale === 'se' ? 'Framgång' : 'Success'),
|
||||
'icon' => 'uil-trophy'
|
||||
],
|
||||
[
|
||||
'title' => $locale === 'tr' ? 'Müşteri Görüşleri' : ($locale === 'se' ? 'Kundrecensioner' : 'Client Testimonials'),
|
||||
'url' => route('page.show', 'musteri-gorusleri'),
|
||||
'badge' => null,
|
||||
'icon' => 'uil-comments'
|
||||
],
|
||||
[
|
||||
'title' => $locale === 'tr' ? 'Çözüm Ortakları' : ($locale === 'se' ? 'Lösningspartners' : 'Solution Partners'),
|
||||
'url' => route('page.show', 'cozum-ortaklari'),
|
||||
'badge' => null,
|
||||
'icon' => 'uil-users-alt'
|
||||
]
|
||||
];
|
||||
}
|
||||
@endphp
|
||||
|
||||
@if($isMegaMenu)
|
||||
<li class="nav-item dropdown dropdown-mega">
|
||||
<a class="nav-link dropdown-toggle font-bold !tracking-[normal]" href="{{ route('page.show', $item->slug) }}" data-bs-toggle="dropdown">{{ $item->translate('title') }}</a>
|
||||
<ul class="dropdown-menu mega-menu">
|
||||
<ul class="dropdown-menu mega-menu !p-5 xl:!p-6 !rounded-[0.8rem] !shadow-2xl !border-0">
|
||||
<li class="mega-menu-content">
|
||||
<div class="flex flex-wrap mx-0 xl:mx-[-7.5px] lg:mx-[-7.5px]">
|
||||
<div class="xl:w-3/12 lg:w-3/12 w-full flex-[0_0_auto] max-w-full px-6">
|
||||
<h6 class="dropdown-header !text-[#e31e24] mb-4 mt-4 !pl-0">{{ __('Kategoriler') }}</h6>
|
||||
<ul class="pl-0 list-none mb-8">
|
||||
@foreach($categories as $category)
|
||||
<li class="w-full">
|
||||
<a class='dropdown-item hover:!text-[#e31e24] !pl-0 !bg-transparent' href='#'>{{ $category->translate('title') }}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<h6 class="dropdown-header !text-[#e31e24] mb-4 mt-4 !pl-0">{{ __('Hizmetler') }}</h6>
|
||||
<ul class="pl-0 list-none">
|
||||
@foreach($services as $service)
|
||||
<li class="w-full">
|
||||
<a class='dropdown-item hover:!text-[#e31e24] !pl-0 !bg-transparent' href="{{ $service->external_url ? $service->external_url : route('products.show', $service->slug) }}" @if($service->external_url) target="_blank" @endif>{{ $service->translate('title') }}</a>
|
||||
<div class="flex flex-wrap mx-0 xl:mx-[-10px] lg:mx-[-10px]">
|
||||
<!-- Sütun 1: Ürünlerimiz -->
|
||||
<div class="xl:w-4/12 lg:w-4/12 w-full flex-[0_0_auto] max-w-full px-5 xl:border-r border-[#0000000a] dark:border-[#ffffff0a] mb-2 lg:mb-0">
|
||||
<h6 class="dropdown-header !text-[#e31e24] !pl-0 text-uppercase tracking-wider font-bold text-xs flex items-center" style="margin-top: 5px !important; margin-bottom: 8px !important; padding: 0px !important;">
|
||||
<i class="uil uil-cube text-lg mr-2.5"></i>
|
||||
{{ $locale === 'tr' ? 'Ürünlerimiz' : ($locale === 'se' ? 'Våra Produkter' : 'Products') }}
|
||||
</h6>
|
||||
<ul class="pl-0 list-none mb-0">
|
||||
@foreach($products as $prod)
|
||||
<li class="w-full" style="margin-bottom: 0px !important; padding: 0px !important;">
|
||||
<a class='dropdown-item hover:!text-[#e31e24] !pl-0 !bg-transparent flex items-center transition-all duration-200 hover:translate-x-1'
|
||||
style="padding-top: 2px !important; padding-bottom: 2px !important; padding-left: 0px !important; padding-right: 0px !important; margin: 0px !important; line-height: 1.2 !important;"
|
||||
href="{{ $prod->external_url ? $prod->external_url : route('products.show', $prod->slug) }}"
|
||||
@if($prod->external_url) target="_blank" @endif>
|
||||
<i class="uil uil-angle-right text-[#e31e24] mr-1 text-[15px] opacity-80"></i>
|
||||
<span class="font-medium text-[13.5px] tracking-wide" style="line-height: 1.2 !important;">{{ $prod->translate('title') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="xl:w-9/12 lg:w-9/12 w-full flex-[0_0_auto] max-w-full px-6 xl:!pl-8 lg:!pl-8">
|
||||
<div class="h-full xl:p-[50px] lg:pl-[50px] px-6 pt-2 gradient-5 rounded-[.4rem]">
|
||||
<h6 class="dropdown-header !text-white mb-6 mt-6 !p-0">{{ __('Öne Çıkan Ürünler') }}</h6>
|
||||
<div class="flex flex-wrap gap-4 mx-5 pt-5">
|
||||
@foreach($featuredProducts as $item)
|
||||
<div class="flex-none " style="width: 183px;">
|
||||
<a class="group !bg-transparent !p-0 block transition-transform duration-300 hover:-translate-y-1"
|
||||
href="{{ $item->external_url ? $item->external_url : route('products.show', $item->slug) }}"
|
||||
@if($item->external_url) target="_blank" @endif
|
||||
data-bs-toggle="tooltip"
|
||||
data-bs-placement="top"
|
||||
title="{{ $item->translate('title') }}">
|
||||
<figure style="width: 183px; height: 103px;"
|
||||
class="!rounded-[.4rem] lift overflow-hidden shadow-[0_0.25rem_1.75rem_rgba(30,34,40,0.57)] mx-auto block transition-transform duration-300 group-hover:-translate-y-1 hidden xl:block lg:block ">
|
||||
@if($item->hero_image)
|
||||
<img loading="lazy" style="width: 183px; height: 103px;" class="!rounded-[.4rem] object-cover block" src="{{ \Storage::url($item->hero_image) }}" alt="{{ $item->translate('title') }}">
|
||||
@else
|
||||
<img loading="lazy" style="width: 183px; height: 103px;" class="!rounded-[.4rem] object-cover block" src="https://placehold.co/185x135?text={{ urlencode($item->translate('title')) }}" alt="{{ $item->translate('title') }}">
|
||||
@endif
|
||||
</figure>
|
||||
<span class="xl:!hidden lg:!hidden">{{ $item->translate('title') }}</span>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<!-- Sütun 2: Hizmetlerimiz -->
|
||||
<div class="xl:w-4/12 lg:w-4/12 w-full flex-[0_0_auto] max-w-full px-5 xl:border-r border-[#0000000a] dark:border-[#ffffff0a] mb-2 lg:mb-0">
|
||||
<h6 class="dropdown-header !text-[#e31e24] !pl-0 text-uppercase tracking-wider font-bold text-xs flex items-center" style="margin-top: 5px !important; margin-bottom: 8px !important; padding: 0px !important;">
|
||||
<i class="uil uil-cog text-lg mr-2.5"></i>
|
||||
{{ $locale === 'tr' ? 'Hizmetlerimiz' : ($locale === 'se' ? 'Våra Tjänster' : 'Services') }}
|
||||
</h6>
|
||||
<ul class="pl-0 list-none mb-0">
|
||||
@foreach($services as $serv)
|
||||
<li class="w-full" style="margin-bottom: 0px !important; padding: 0px !important;">
|
||||
<a class='dropdown-item hover:!text-[#e31e24] !pl-0 !bg-transparent flex items-center transition-all duration-200 hover:translate-x-1'
|
||||
style="padding-top: 2px !important; padding-bottom: 2px !important; padding-left: 0px !important; padding-right: 0px !important; margin: 0px !important; line-height: 1.2 !important;"
|
||||
href="{{ $serv->external_url ? $serv->external_url : route('products.show', $serv->slug) }}"
|
||||
@if($serv->external_url) target="_blank" @endif>
|
||||
<i class="uil uil-angle-right text-[#e31e24] mr-1 text-[15px] opacity-80"></i>
|
||||
<span class="font-medium text-[13.5px] tracking-wide" style="line-height: 1.2 !important;">{{ $serv->translate('title') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- Sütun 3: Projelerimiz & Başarı Hikayeleri -->
|
||||
<div class="xl:w-4/12 lg:w-4/12 w-full flex-[0_0_auto] max-w-full px-5">
|
||||
<h6 class="dropdown-header !text-[#e31e24] !pl-0 text-uppercase tracking-wider font-bold text-xs flex items-center" style="margin-top: 5px !important; margin-bottom: 8px !important; padding: 0px !important;">
|
||||
<i class="uil uil-award text-lg mr-2.5"></i>
|
||||
{{ $locale === 'tr' ? 'Projelerimiz / Başarılar' : ($locale === 'se' ? 'Projekt & Framgångar' : 'Projects & Successes') }}
|
||||
</h6>
|
||||
<ul class="pl-0 list-none mb-0">
|
||||
@foreach($projectLinks as $proj)
|
||||
<li class="w-full" style="margin-bottom: 0px !important; padding: 0px !important;">
|
||||
<a class='dropdown-item hover:!text-[#e31e24] !pl-0 !bg-transparent flex items-center justify-between transition-all duration-200 hover:translate-x-1'
|
||||
style="padding-top: 2px !important; padding-bottom: 2px !important; padding-left: 0px !important; padding-right: 0px !important; margin: 0px !important; line-height: 1.2 !important;"
|
||||
href="{{ $proj['url'] }}">
|
||||
<span class="flex items-center">
|
||||
<i class="uil {{ $proj['icon'] }} text-[#e31e24] mr-3 text-[15px] opacity-90"></i>
|
||||
<span class="font-medium text-[13.5px] tracking-wide" style="line-height: 1.2 !important;">{{ $proj['title'] }}</span>
|
||||
</span>
|
||||
@if($proj['badge'])
|
||||
<span class="badge bg-[#e31e24]/10 text-[#e31e24] text-[10px] px-2 py-0.5 rounded-full font-semibold ml-2">{{ $proj['badge'] }}</span>
|
||||
@endif
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
<!--/column -->
|
||||
</div>
|
||||
<!--/.row -->
|
||||
</li>
|
||||
<!--/.mega-menu-content-->
|
||||
</ul>
|
||||
<!--/.dropdown-menu -->
|
||||
</li>
|
||||
@elseif($isCareer)
|
||||
<li class="nav-item dropdown">
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{{-- Bu bileşen görünümü devre dışı bırakılmıştır. --}}
|
||||
@@ -0,0 +1,283 @@
|
||||
@php
|
||||
$githubRepo = $get('github_repo') ?? ($getRecord ? $getRecord()->github_repo : null);
|
||||
@endphp
|
||||
|
||||
<div
|
||||
x-data="{
|
||||
githubRepoUrl: @js($githubRepo),
|
||||
commitDays: [],
|
||||
activeDayIndex: 0,
|
||||
loading: false,
|
||||
errorMsg: '',
|
||||
isEmpty: false,
|
||||
|
||||
init() {
|
||||
this.loadCommits();
|
||||
},
|
||||
|
||||
escapeHtml(text) {
|
||||
if (!text) return '';
|
||||
const div = document.createElement('div');
|
||||
div.appendChild(document.createTextNode(text));
|
||||
return div.innerHTML;
|
||||
},
|
||||
|
||||
loadCommits() {
|
||||
if (!this.githubRepoUrl) {
|
||||
this.isEmpty = true;
|
||||
return;
|
||||
}
|
||||
|
||||
this.loading = true;
|
||||
this.errorMsg = '';
|
||||
this.isEmpty = false;
|
||||
this.commitDays = [];
|
||||
|
||||
let repoClean = this.githubRepoUrl.replace(/https?:\/\/(www\.)?github\.com\//i, '');
|
||||
repoClean = repoClean.replace(/\/$/, '');
|
||||
const parts = repoClean.split('/');
|
||||
if (parts.length < 2) {
|
||||
this.loading = false;
|
||||
this.errorMsg = 'Github depo URL\'si çözümlenemedi. Geçerli format: https://github.com/kullanici/depo';
|
||||
return;
|
||||
}
|
||||
const owner = parts[0];
|
||||
const repo = parts[1].replace(/\.git$/i, '');
|
||||
|
||||
fetch('https://api.github.com/repos/' + owner + '/' + repo + '/commits?per_page=100')
|
||||
.then(response => {
|
||||
if (!response.ok) {
|
||||
if (response.status === 404) {
|
||||
throw new Error('Depo bulunamadı veya private (gizli). Deponuzun public (herkese açık) olduğundan emin olun.');
|
||||
} else if (response.status === 403) {
|
||||
throw new Error('GitHub API istek limiti aşıldı. Lütfen daha sonra tekrar deneyin.');
|
||||
} else {
|
||||
throw new Error('GitHub API hatası: ' + response.statusText);
|
||||
}
|
||||
}
|
||||
return response.json();
|
||||
})
|
||||
.then(commits => {
|
||||
this.loading = false;
|
||||
if (!Array.isArray(commits) || commits.length === 0) {
|
||||
this.isEmpty = true;
|
||||
return;
|
||||
}
|
||||
|
||||
commits.reverse();
|
||||
|
||||
const grouped = {};
|
||||
commits.forEach(item => {
|
||||
const dateStr = item.commit.author.date;
|
||||
if (dateStr) {
|
||||
const dateOnly = dateStr.substring(0, 10);
|
||||
if (!grouped[dateOnly]) {
|
||||
grouped[dateOnly] = [];
|
||||
}
|
||||
grouped[dateOnly].push(item);
|
||||
}
|
||||
});
|
||||
|
||||
const sortedDates = Object.keys(grouped).sort();
|
||||
|
||||
this.commitDays = sortedDates.map((date, index) => {
|
||||
const dateParts = date.split('-');
|
||||
return {
|
||||
date: date,
|
||||
dayNum: index + 1,
|
||||
formattedDate: dateParts[2] + '.' + dateParts[1] + '.' + dateParts[0],
|
||||
commits: grouped[date].map(c => ({
|
||||
message: c.commit.message,
|
||||
time: new Date(c.commit.author.date).toLocaleTimeString('tr-TR', { hour: '2-digit', minute: '2-digit' }),
|
||||
sha: c.sha.substring(0, 7),
|
||||
url: c.html_url
|
||||
}))
|
||||
};
|
||||
});
|
||||
|
||||
if (this.commitDays.length === 0) {
|
||||
this.isEmpty = true;
|
||||
return;
|
||||
}
|
||||
|
||||
this.activeDayIndex = 0;
|
||||
})
|
||||
.catch(err => {
|
||||
this.loading = false;
|
||||
this.errorMsg = err.message || 'Bir hata oluştu.';
|
||||
});
|
||||
},
|
||||
|
||||
get activeDay() {
|
||||
return this.commitDays[this.activeDayIndex] || null;
|
||||
},
|
||||
|
||||
navigateDay(dir) {
|
||||
const newIndex = this.activeDayIndex + dir;
|
||||
if (newIndex >= 0 && newIndex < this.commitDays.length) {
|
||||
this.activeDayIndex = newIndex;
|
||||
}
|
||||
},
|
||||
|
||||
selectDay(index) {
|
||||
this.activeDayIndex = index;
|
||||
}
|
||||
}"
|
||||
style="margin-top: 1rem; font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;"
|
||||
>
|
||||
<style>
|
||||
.jt-day-btn {
|
||||
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
cursor: pointer;
|
||||
}
|
||||
.jt-day-btn:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
|
||||
}
|
||||
.jt-arrow-btn {
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.jt-arrow-btn:hover:not(:disabled) {
|
||||
transform: scale(1.08);
|
||||
background: #eff6ff !important;
|
||||
border-color: #93c5fd !important;
|
||||
}
|
||||
.jt-arrow-btn:disabled {
|
||||
opacity: 0.35;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.jt-event-card {
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
.jt-event-card:hover {
|
||||
transform: translateY(-2px) translateX(3px);
|
||||
box-shadow: 0 12px 24px -8px rgba(59, 130, 246, 0.12);
|
||||
border-color: #bfdbfe !important;
|
||||
background: #ffffff !important;
|
||||
}
|
||||
.jt-timeline-dot {
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
.jt-event-row:hover .jt-timeline-dot {
|
||||
transform: scale(1.2);
|
||||
background-color: #3b82f6 !important;
|
||||
box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.18);
|
||||
}
|
||||
.jt-event-row:hover .jt-timeline-dot-inner {
|
||||
background-color: #ffffff !important;
|
||||
}
|
||||
.jt-sha-link {
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
.jt-sha-link:hover {
|
||||
background: #3b82f6 !important;
|
||||
color: #ffffff !important;
|
||||
border-color: #3b82f6 !important;
|
||||
}
|
||||
.jt-paginator-scroll::-webkit-scrollbar {
|
||||
height: 4px;
|
||||
}
|
||||
.jt-paginator-scroll::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
.jt-paginator-scroll::-webkit-scrollbar-thumb {
|
||||
background: #cbd5e1;
|
||||
border-radius: 9999px;
|
||||
}
|
||||
.jt-paginator-scroll {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #cbd5e1 transparent;
|
||||
}
|
||||
@keyframes jt-spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
@keyframes jt-fadeIn {
|
||||
from { opacity: 0; transform: translateY(8px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
.jt-fade-in {
|
||||
animation: jt-fadeIn 0.4s ease-out;
|
||||
}
|
||||
</style>
|
||||
|
||||
{{-- Loader --}}
|
||||
<div x-show="loading" x-cloak style="padding: 3rem 0; display: flex; flex-direction: column; align-items: center; justify-content: center;">
|
||||
<div style="width: 2.5rem; height: 2.5rem; border: 2px solid #e2e8f0; border-top-color: #3b82f6; border-radius: 50%; animation: jt-spin 0.8s linear infinite; margin-bottom: 0.75rem;"></div>
|
||||
<span style="font-size: 0.75rem; color: #94a3b8; font-weight: 600; letter-spacing: 0.025em;">Commit geçmişi yükleniyor...</span>
|
||||
</div>
|
||||
|
||||
{{-- Error --}}
|
||||
<div x-show="errorMsg" x-cloak x-text="errorMsg" style="padding: 1rem 1.25rem; border-radius: 1rem; background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; font-size: 0.75rem; font-weight: 700;"></div>
|
||||
|
||||
{{-- Empty --}}
|
||||
<div x-show="isEmpty && !loading" x-cloak style="padding: 2rem; border-radius: 1.5rem; border: 1px solid #f1f5f9; background: #ffffff; text-align: center; color: #94a3b8; font-style: italic; font-size: 0.875rem;">
|
||||
Henüz hiçbir commit verisi bulunamadı veya depo adresi yapılandırılmadı.
|
||||
</div>
|
||||
|
||||
{{-- Day Paginator --}}
|
||||
<div x-show="commitDays.length > 0" x-cloak style="display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem; background: rgba(255,255,255,0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid #e2e8f0; border-radius: 1.5rem; margin-bottom: 1.75rem; user-select: none; box-shadow: 0 1px 3px rgba(0,0,0,0.04);">
|
||||
<button type="button" @click="navigateDay(-1)" :disabled="activeDayIndex === 0" class="jt-arrow-btn" style="width: 2.75rem; height: 2.75rem; border-radius: 0.875rem; background: #ffffff; color: #64748b; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04);">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15 18l-6-6 6-6"/></svg>
|
||||
</button>
|
||||
|
||||
<div class="jt-paginator-scroll" style="flex: 1; overflow-x: auto; padding: 0.375rem 0;">
|
||||
<div style="display: flex; gap: 0.625rem; justify-content: center; min-width: max-content; padding: 0 0.5rem;">
|
||||
<template x-for="(day, index) in commitDays" :key="day.date">
|
||||
<button type="button" @click="selectDay(index)" class="jt-day-btn" :style="index === activeDayIndex
|
||||
? 'padding: 0.5rem 1.25rem; border-radius: 0.875rem; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px solid #93c5fd; background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #1d4ed8; font-weight: 800; box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);'
|
||||
: 'padding: 0.5rem 1.25rem; border-radius: 0.875rem; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #e2e8f0; background: #ffffff; color: #64748b; font-weight: 600;'">
|
||||
<span style="font-size: 0.75rem; line-height: 1.2;" x-text="day.dayNum + '. Gün'"></span>
|
||||
<span style="font-size: 0.6rem; margin-top: 0.125rem; opacity: 0.7; font-weight: 500;" x-text="day.formattedDate"></span>
|
||||
</button>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="button" @click="navigateDay(1)" :disabled="activeDayIndex === commitDays.length - 1" class="jt-arrow-btn" style="width: 2.75rem; height: 2.75rem; border-radius: 0.875rem; background: #ffffff; color: #64748b; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04);">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18l6-6-6-6"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{{-- Active Day Card --}}
|
||||
<div x-show="activeDay" x-cloak class="jt-fade-in" :key="activeDayIndex" style="background: #ffffff; border: 1px solid #f1f5f9; border-radius: 1.5rem; padding: 1.75rem 2rem; box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);">
|
||||
{{-- Day Header --}}
|
||||
<div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid #f1f5f9;">
|
||||
<div style="display: flex; align-items: center; gap: 0.875rem;">
|
||||
<span style="font-size: 0.875rem; font-weight: 800; color: #2563eb; background: linear-gradient(135deg, #eff6ff, #dbeafe); padding: 0.5rem 1.125rem; border-radius: 1rem; box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);" x-text="activeDay ? activeDay.dayNum + '. Gün' : ''"></span>
|
||||
<span style="font-size: 0.8125rem; font-weight: 600; color: #94a3b8; display: flex; align-items: center; gap: 0.375rem;">
|
||||
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="color: #60a5fa;"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>
|
||||
<span x-text="activeDay ? activeDay.formattedDate : ''"></span>
|
||||
</span>
|
||||
</div>
|
||||
<span style="font-size: 0.6875rem; font-weight: 700; color: #94a3b8; background: #f8fafc; border: 1px solid #f1f5f9; padding: 0.375rem 0.875rem; border-radius: 0.625rem;" x-text="activeDay ? activeDay.commits.length + ' Commit' : ''"></span>
|
||||
</div>
|
||||
|
||||
{{-- Timeline --}}
|
||||
<div style="position: relative; padding-left: 2.25rem;">
|
||||
{{-- Gradient Timeline Line --}}
|
||||
<div style="position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, #3b82f6 0%, #818cf8 40%, #c7d2fe 100%); border-radius: 2px;"></div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 1.25rem;">
|
||||
<template x-for="(commit, ci) in (activeDay ? activeDay.commits : [])" :key="ci">
|
||||
<div class="jt-event-row" style="position: relative;">
|
||||
{{-- Timeline Dot --}}
|
||||
<div class="jt-timeline-dot" style="position: absolute; left: -32px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: #ffffff; border: 2.5px solid #3b82f6; display: flex; align-items: center; justify-content: center; z-index: 1;">
|
||||
<div class="jt-timeline-dot-inner" style="width: 8px; height: 8px; border-radius: 50%; background: #3b82f6;"></div>
|
||||
</div>
|
||||
{{-- Event Card --}}
|
||||
<div class="jt-event-card" style="padding: 1.125rem 1.25rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.03);">
|
||||
<div style="display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.625rem;">
|
||||
<span style="font-size: 0.75rem; font-weight: 700; color: #94a3b8; display: flex; align-items: center; gap: 0.375rem;">
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#60a5fa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
|
||||
<span x-text="commit.time"></span>
|
||||
</span>
|
||||
<a :href="commit.url" target="_blank" class="jt-sha-link" x-text="commit.sha" style="font-size: 0.6875rem; font-family: 'SF Mono', 'Fira Code', monospace; font-weight: 700; color: #2563eb; background: #eff6ff; padding: 0.25rem 0.75rem; border-radius: 0.5rem; border: 1px solid #bfdbfe; text-decoration: none;"></a>
|
||||
</div>
|
||||
<p style="font-size: 0.8125rem; font-weight: 600; color: #334155; line-height: 1.6; white-space: pre-line; margin: 0;" x-text="commit.message"></p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,642 @@
|
||||
@extends('layouts.site')
|
||||
|
||||
@section('content')
|
||||
<section class="wrapper bg-[#f0f7ff] py-12">
|
||||
<div class="container px-4">
|
||||
<div class="max-w-7xl mx-auto">
|
||||
|
||||
<!-- Welcome Section -->
|
||||
@include('front.career.partials.welcome')
|
||||
|
||||
<!-- Statistics Section -->
|
||||
@include('front.career.partials.stats')
|
||||
|
||||
<!-- Tab Switcher Menu -->
|
||||
<div class="bg-white rounded-3xl p-4 shadow-xl border border-slate-100/50 mb-8">
|
||||
<div class="flex flex-col sm:flex-row gap-3" role="tablist">
|
||||
<button type="button" role="tab" aria-selected="true" data-tab-target="gantt-chart" class="admin-tab-btn active flex-1 flex items-center justify-center gap-3 py-4 px-6 rounded-2xl text-center font-bold text-sm transition-all border border-transparent cursor-pointer">
|
||||
<i class="uil uil-schedule text-lg"></i>
|
||||
<span>Gantt Şeması ve Takvimi</span>
|
||||
</button>
|
||||
|
||||
<button type="button" role="tab" aria-selected="false" data-tab-target="intern-list" class="admin-tab-btn flex-1 flex items-center justify-center gap-3 py-4 px-6 rounded-2xl text-center font-bold text-sm transition-all border border-transparent text-slate-600 hover:bg-slate-50 cursor-pointer">
|
||||
<i class="uil uil-list-ul text-lg"></i>
|
||||
<span>Stajyer Listesi ve Detaylı Takip</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Tab Panels -->
|
||||
<div id="gantt-chart-panel" class="admin-tab-panel space-y-6">
|
||||
@include('front.career.partials.gantt')
|
||||
</div>
|
||||
|
||||
<div id="intern-list-panel" class="admin-tab-panel hidden space-y-6">
|
||||
@include('front.career.partials.list')
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@include('front.career.partials.guide_modal')
|
||||
<!-- Intern Journal Tracking & Approval Modal -->
|
||||
<div id="intern-journal-modal" class="fixed inset-0 z-[9998] hidden items-center justify-center bg-slate-900/60 backdrop-blur-sm transition-opacity duration-300">
|
||||
<div class="bg-white rounded-3xl shadow-2xl border border-slate-100 max-w-4xl w-full mx-4 overflow-hidden transform scale-95 opacity-0 transition-all duration-300 flex flex-col max-h-[90vh]">
|
||||
<!-- Header -->
|
||||
<div class="px-6 py-4 bg-gradient-to-r from-blue-50 to-indigo-50/30 border-b border-slate-100 flex items-center justify-between flex-shrink-0">
|
||||
<div>
|
||||
<h4 id="ijm-name" class="font-bold text-slate-800 text-lg">Stajyer Defteri ve İnceleme</h4>
|
||||
<p id="ijm-meta" class="text-xs text-slate-500 font-semibold mt-0.5"></p>
|
||||
</div>
|
||||
<button type="button" onclick="closeInternJournalModal()" class="text-slate-400 hover:text-slate-600 transition-colors p-1.5 rounded-full hover:bg-slate-100/80">
|
||||
<svg class="w-5 h-5" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path d="M6 18L18 6M6 6l12 12"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Body -->
|
||||
<div class="flex-grow p-6 overflow-y-auto no-scrollbar grid grid-cols-1 md:grid-cols-12 gap-6">
|
||||
|
||||
<!-- Left Sidebar: Progress & General Approvals (col-span-4) -->
|
||||
<div class="md:col-span-4 space-y-6">
|
||||
|
||||
<!-- Progress Bar Card -->
|
||||
<div class="bg-slate-50 rounded-2xl p-5 border border-slate-200/50">
|
||||
<h5 class="font-bold text-slate-700 text-xs uppercase tracking-wider mb-4 flex items-center gap-1.5">
|
||||
<i class="uil uil-chart-bar text-blue-600"></i>
|
||||
<span>Staj İlerlemesi</span>
|
||||
</h5>
|
||||
|
||||
<!-- Journal Filling Progress -->
|
||||
<div class="space-y-2 mb-4">
|
||||
<div class="flex justify-between text-xs font-bold">
|
||||
<span class="text-slate-500">Defter Doldurma</span>
|
||||
<span id="ijm-fill-text" class="text-slate-700">0 / 0 Gün</span>
|
||||
</div>
|
||||
<div class="w-full bg-slate-200 h-2.5 rounded-full overflow-hidden">
|
||||
<div id="ijm-fill-progress" class="bg-blue-600 h-full rounded-full transition-all duration-500" style="width: 0%"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Journal Approval Progress -->
|
||||
<div class="space-y-2">
|
||||
<div class="flex justify-between text-xs font-bold">
|
||||
<span class="text-slate-500">Onaylı Günler</span>
|
||||
<span id="ijm-approved-text" class="text-slate-700">0 / 0 Gün</span>
|
||||
</div>
|
||||
<div class="w-full bg-slate-200 h-2.5 rounded-full overflow-hidden">
|
||||
<div id="ijm-approved-progress" class="bg-emerald-500 h-full rounded-full transition-all duration-500" style="width: 0%"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Overall Signatures Card -->
|
||||
<div class="bg-slate-50 rounded-2xl p-5 border border-slate-200/50 space-y-4">
|
||||
<h5 class="font-bold text-slate-700 text-xs uppercase tracking-wider flex items-center gap-1.5">
|
||||
<i class="uil uil-signature text-indigo-600"></i>
|
||||
<span>Resmi Onaylar / İmzalar</span>
|
||||
</h5>
|
||||
|
||||
<!-- Supervisor Signature -->
|
||||
<div class="p-3 bg-white rounded-xl border border-slate-100 flex flex-col gap-2">
|
||||
<div class="flex items-center justify-between">
|
||||
<span class="text-xs font-bold text-slate-600">Sorumlu İmzası</span>
|
||||
<button type="button" id="ijm-btn-supervisor" onclick="toggleNotebookSignature('supervisor')" class="px-2.5 py-1 text-[10px] font-extrabold uppercase rounded-lg border transition-all"></button>
|
||||
</div>
|
||||
<div class="text-[10px] text-slate-400 font-semibold" id="ijm-text-supervisor">İmzalanmadı</div>
|
||||
</div>
|
||||
|
||||
<!-- Unit Signature -->
|
||||
<div class="p-3 bg-white rounded-xl border border-slate-100 flex flex-col gap-2">
|
||||
<div class="flex items-center justify-between">
|
||||
<span class="text-xs font-bold text-slate-600">Birim Sorumlu İmzası</span>
|
||||
<button type="button" id="ijm-btn-unit" onclick="toggleNotebookSignature('unit')" class="px-2.5 py-1 text-[10px] font-extrabold uppercase rounded-lg border transition-all"></button>
|
||||
</div>
|
||||
<div class="text-[10px] text-slate-400 font-semibold" id="ijm-text-unit">İmzalanmadı</div>
|
||||
</div>
|
||||
|
||||
<!-- Notebook Approved -->
|
||||
<div class="p-3 bg-white rounded-xl border border-slate-100 flex flex-col gap-2">
|
||||
<div class="flex items-center justify-between">
|
||||
<span class="text-xs font-bold text-slate-600">Genel Defter Onayı</span>
|
||||
<button type="button" id="ijm-btn-approved" onclick="toggleNotebookSignature('approved')" class="px-2.5 py-1 text-[10px] font-extrabold uppercase rounded-lg border transition-all"></button>
|
||||
</div>
|
||||
<div class="text-[10px] text-slate-400 font-semibold" id="ijm-text-approved">Onaylanmadı</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Right Section: Carousel & Navigation (col-span-8) -->
|
||||
<div class="md:col-span-8 flex flex-col space-y-4">
|
||||
|
||||
<!-- Carousel Controls -->
|
||||
<div class="bg-slate-50 p-4 rounded-2xl border border-slate-200/50 flex items-center justify-between gap-3">
|
||||
<button type="button" onclick="prevSlide()" class="p-2 bg-white hover:bg-slate-100 border border-slate-200 text-slate-600 hover:text-slate-900 rounded-xl transition-all flex items-center justify-center cursor-pointer">
|
||||
<svg class="w-5 h-5" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path d="M15 19l-7-7 7-7"/></svg>
|
||||
</button>
|
||||
|
||||
<div class="flex-grow flex items-center justify-center gap-3">
|
||||
<span id="ijm-day-indicator" class="text-sm font-extrabold text-blue-600 bg-blue-50 px-3 py-1.5 rounded-xl">Gün: 0 / 0</span>
|
||||
|
||||
<!-- Quick Day Dropdown -->
|
||||
<select id="ijm-day-select" onchange="goToSlide(this.value)" class="text-xs font-semibold text-slate-700 bg-white border border-slate-200 rounded-xl px-2.5 py-1.5 focus:outline-none focus:border-blue-400">
|
||||
<!-- Options loaded dynamically -->
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button type="button" onclick="nextSlide()" class="p-2 bg-white hover:bg-slate-100 border border-slate-200 text-slate-600 hover:text-slate-900 rounded-xl transition-all flex items-center justify-center cursor-pointer">
|
||||
<svg class="w-5 h-5" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path d="M9 5l7 7-7 7"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Carousel Slide Container -->
|
||||
<div class="bg-white rounded-2xl border border-slate-100 p-6 flex-grow flex flex-col shadow-sm min-h-[300px]">
|
||||
<!-- Day Title & Date -->
|
||||
<div class="flex items-center justify-between pb-3 border-b border-slate-100 mb-4 flex-shrink-0">
|
||||
<div>
|
||||
<span id="ijm-slide-title" class="text-sm font-extrabold text-slate-800">Seçili Gün</span>
|
||||
<span id="ijm-slide-date" class="text-xs font-semibold text-slate-400 ml-2"></span>
|
||||
</div>
|
||||
<div id="ijm-slide-retroactive">
|
||||
<!-- Retroactive badge -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Slide Content (Rich text HTML) -->
|
||||
<div class="flex-grow overflow-y-auto no-scrollbar prose max-w-none text-slate-700 leading-relaxed text-sm" style="max-height: 250px;">
|
||||
<div id="ijm-slide-content">
|
||||
<!-- Day content loaded here -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Slide Actions / Daily approval status -->
|
||||
<div class="pt-4 border-t border-slate-100 flex items-center justify-between mt-4 flex-shrink-0">
|
||||
<div id="ijm-slide-status-badge">
|
||||
<!-- Status badge -->
|
||||
</div>
|
||||
<button type="button" id="ijm-slide-action-btn" onclick="toggleActiveDayApproval()" class="px-4 py-2 text-white bg-blue-600 hover:bg-blue-700 rounded-xl font-bold text-xs shadow-lg shadow-blue-500/20 transition-all cursor-pointer">
|
||||
Onayla
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Footer -->
|
||||
<div class="px-6 py-4 bg-slate-50 border-t border-slate-100 flex items-center justify-end flex-shrink-0">
|
||||
<button type="button" onclick="closeInternJournalModal()" class="px-5 py-2.5 bg-slate-800 hover:bg-slate-900 text-white font-bold rounded-xl text-xs transition-colors shadow-md cursor-pointer">Kapat</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('styles')
|
||||
<style>
|
||||
.admin-tab-btn {
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
.admin-tab-btn:hover:not(.active) {
|
||||
background-color: #f8fafc;
|
||||
}
|
||||
.admin-tab-btn.active {
|
||||
background-color: #eff6ff;
|
||||
border-color: #dbeafe;
|
||||
color: #1e40af !important;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
let currentInternId = null;
|
||||
let journalEntries = [];
|
||||
let activeSlideIndex = 0;
|
||||
let isUpdatingSignature = false;
|
||||
let isUpdatingDayApproval = false;
|
||||
|
||||
function openInternJournalModal(internId) {
|
||||
currentInternId = internId;
|
||||
activeSlideIndex = 0;
|
||||
|
||||
const modal = document.getElementById('intern-journal-modal');
|
||||
if (!modal) return;
|
||||
|
||||
modal.classList.remove('hidden');
|
||||
modal.classList.add('flex');
|
||||
|
||||
// Animate open
|
||||
const card = modal.querySelector('.max-w-4xl');
|
||||
if (card) {
|
||||
setTimeout(() => {
|
||||
card.classList.remove('scale-95', 'opacity-0');
|
||||
card.classList.add('scale-100', 'opacity-100');
|
||||
}, 50);
|
||||
}
|
||||
|
||||
loadInternJournalDetails(internId);
|
||||
}
|
||||
|
||||
function closeInternJournalModal() {
|
||||
const modal = document.getElementById('intern-journal-modal');
|
||||
if (!modal) return;
|
||||
|
||||
const card = modal.querySelector('.max-w-4xl');
|
||||
if (card) {
|
||||
card.classList.remove('scale-100', 'opacity-100');
|
||||
card.classList.add('scale-95', 'opacity-0');
|
||||
}
|
||||
setTimeout(() => {
|
||||
modal.classList.add('hidden');
|
||||
modal.classList.remove('flex');
|
||||
}, 200);
|
||||
}
|
||||
|
||||
function loadInternJournalDetails(internId) {
|
||||
const slideContent = document.getElementById('ijm-slide-content');
|
||||
if (slideContent) {
|
||||
slideContent.innerHTML = `
|
||||
<div class="flex items-center justify-center p-12">
|
||||
<div class="animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600"></div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
fetch(`/stajyer/admin/journal-details?intern_id=${internId}`)
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
if (!data.success) {
|
||||
alert(data.message || 'Veriler yüklenemedi.');
|
||||
closeInternJournalModal();
|
||||
return;
|
||||
}
|
||||
|
||||
// Set Header details
|
||||
const nameEl = document.getElementById('ijm-name');
|
||||
if (nameEl) nameEl.textContent = data.intern.name;
|
||||
|
||||
let startF = data.intern.start_date ? formatDateStr(data.intern.start_date) : '-';
|
||||
let endF = data.intern.end_date ? formatDateStr(data.intern.end_date) : '-';
|
||||
const metaEl = document.getElementById('ijm-meta');
|
||||
if (metaEl) metaEl.textContent = `${startF} - ${endF} (${data.intern.total_days} İş Günü)`;
|
||||
|
||||
// Setup Progress Bars
|
||||
const fillPercent = data.intern.total_days > 0 ? (data.intern.filled_days / data.intern.total_days) * 100 : 0;
|
||||
const fillTextEl = document.getElementById('ijm-fill-text');
|
||||
if (fillTextEl) fillTextEl.textContent = `${data.intern.filled_days} / ${data.intern.total_days} Gün`;
|
||||
const fillBarEl = document.getElementById('ijm-fill-progress');
|
||||
if (fillBarEl) fillBarEl.style.width = `${fillPercent}%`;
|
||||
|
||||
// Approved days count
|
||||
let approvedDaysCount = 0;
|
||||
data.entries.forEach(e => {
|
||||
if (e.filled && e.supervisor_approved) {
|
||||
approvedDaysCount++;
|
||||
}
|
||||
});
|
||||
const approvedPercent = data.intern.total_days > 0 ? (approvedDaysCount / data.intern.total_days) * 100 : 0;
|
||||
const appTextEl = document.getElementById('ijm-approved-text');
|
||||
if (appTextEl) appTextEl.textContent = `${approvedDaysCount} / ${data.intern.total_days} Gün`;
|
||||
const appBarEl = document.getElementById('ijm-approved-progress');
|
||||
if (appBarEl) appBarEl.style.width = `${approvedPercent}%`;
|
||||
|
||||
// Setup Signatures
|
||||
updateSignatureUI('supervisor', data.intern.notebook_supervisor_signed, data.intern.notebook_supervisor_name);
|
||||
updateSignatureUI('unit', data.intern.notebook_unit_signed, data.intern.notebook_unit_name);
|
||||
updateSignatureUI('approved', data.intern.notebook_approved, null);
|
||||
|
||||
// Setup carousel slide data
|
||||
journalEntries = data.entries;
|
||||
|
||||
// Setup dropdown
|
||||
const select = document.getElementById('ijm-day-select');
|
||||
if (select) {
|
||||
select.innerHTML = '';
|
||||
journalEntries.forEach((entry, idx) => {
|
||||
const opt = document.createElement('option');
|
||||
opt.value = idx;
|
||||
opt.textContent = `${entry.day_number}. Gün (${entry.formatted_date})` + (entry.filled ? ' [DOLU]' : ' [BOŞ]');
|
||||
select.appendChild(opt);
|
||||
});
|
||||
}
|
||||
|
||||
// Set total indicator text
|
||||
const indEl = document.getElementById('ijm-day-indicator');
|
||||
if (indEl) indEl.textContent = `Gün: 1 / ${journalEntries.length}`;
|
||||
|
||||
// Render first slide
|
||||
renderSlide(0);
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
alert('Staj detayları yüklenirken bir hata oluştu.');
|
||||
closeInternJournalModal();
|
||||
});
|
||||
}
|
||||
|
||||
function formatDateStr(dateStr) {
|
||||
if (!dateStr) return '';
|
||||
const parts = dateStr.split('-');
|
||||
if (parts.length === 3) {
|
||||
return `${parts[2]}.${parts[1]}.${parts[0]}`;
|
||||
}
|
||||
return dateStr;
|
||||
}
|
||||
|
||||
function updateSignatureUI(type, signed, name) {
|
||||
const btn = document.getElementById(`ijm-btn-${type}`);
|
||||
const label = document.getElementById(`ijm-text-${type}`);
|
||||
if (!btn || !label) return;
|
||||
|
||||
if (type === 'supervisor') {
|
||||
if (signed) {
|
||||
btn.textContent = "İmzayı Kaldır";
|
||||
btn.className = "px-2.5 py-1 text-[10px] font-extrabold uppercase rounded-lg border border-rose-200 bg-rose-50 text-rose-600 hover:bg-rose-100 transition-all cursor-pointer";
|
||||
label.innerHTML = `<span class="text-green-600 font-extrabold"><i class="uil uil-check-circle mr-0.5"></i>İmzaladı: ${name || ''}</span>`;
|
||||
} else {
|
||||
btn.textContent = "İmzala";
|
||||
btn.className = "px-2.5 py-1 text-[10px] font-extrabold uppercase rounded-lg border border-indigo-200 bg-indigo-50 text-indigo-600 hover:bg-indigo-100 transition-all cursor-pointer";
|
||||
label.textContent = "İmzalanmadı";
|
||||
}
|
||||
} else if (type === 'unit') {
|
||||
if (signed) {
|
||||
btn.textContent = "İmzayı Kaldır";
|
||||
btn.className = "px-2.5 py-1 text-[10px] font-extrabold uppercase rounded-lg border border-rose-200 bg-rose-50 text-rose-600 hover:bg-rose-100 transition-all cursor-pointer";
|
||||
label.innerHTML = `<span class="text-green-600 font-extrabold"><i class="uil uil-check-circle mr-0.5"></i>İmzaladı: ${name || ''}</span>`;
|
||||
} else {
|
||||
btn.textContent = "İmzala";
|
||||
btn.className = "px-2.5 py-1 text-[10px] font-extrabold uppercase rounded-lg border border-indigo-200 bg-indigo-50 text-indigo-600 hover:bg-indigo-100 transition-all cursor-pointer";
|
||||
label.textContent = "İmzalanmadı";
|
||||
}
|
||||
} else if (type === 'approved') {
|
||||
if (signed) {
|
||||
btn.textContent = "Onayı Kaldır";
|
||||
btn.className = "px-2.5 py-1 text-[10px] font-extrabold uppercase rounded-lg border border-rose-200 bg-rose-50 text-rose-600 hover:bg-rose-100 transition-all cursor-pointer";
|
||||
label.innerHTML = `<span class="text-green-600 font-extrabold"><i class="uil uil-check-circle mr-0.5"></i>Defter Onaylandı</span>`;
|
||||
} else {
|
||||
btn.textContent = "Onayla";
|
||||
btn.className = "px-2.5 py-1 text-[10px] font-extrabold uppercase rounded-lg border border-emerald-200 bg-emerald-50 text-emerald-600 hover:bg-emerald-100 transition-all cursor-pointer";
|
||||
label.textContent = "Onaylanmadı";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function toggleNotebookSignature(type) {
|
||||
if (isUpdatingSignature) return;
|
||||
|
||||
// Get current state
|
||||
const btn = document.getElementById(`ijm-btn-${type}`);
|
||||
if (!btn) return;
|
||||
const isSignedCurrently = btn.textContent.includes('Kaldır');
|
||||
const newSignState = !isSignedCurrently;
|
||||
|
||||
let promptName = '';
|
||||
if (newSignState && (type === 'supervisor' || type === 'unit')) {
|
||||
promptName = prompt("İmzalayan yetkili ismini giriniz veya onaylayınız:", @json(auth()->user()->name));
|
||||
if (promptName === null) return; // cancelled
|
||||
if (promptName.trim() === '') {
|
||||
promptName = @json(auth()->user()->name);
|
||||
}
|
||||
}
|
||||
|
||||
isUpdatingSignature = true;
|
||||
btn.style.opacity = '0.5';
|
||||
|
||||
fetch('/stajyer/admin/toggle-notebook-signature', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-CSRF-TOKEN': '{{ csrf_token() }}'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
intern_id: currentInternId,
|
||||
type: type,
|
||||
signed: newSignState ? 1 : 0,
|
||||
name: promptName
|
||||
})
|
||||
})
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
if (data.success) {
|
||||
const key = type === 'supervisor' ? 'notebook_supervisor_signed' : (type === 'unit' ? 'notebook_unit_signed' : 'notebook_approved');
|
||||
const nameKey = type === 'supervisor' ? 'notebook_supervisor_name' : (type === 'unit' ? 'notebook_unit_name' : null);
|
||||
|
||||
updateSignatureUI(type, data.intern[key], data.intern[nameKey]);
|
||||
} else {
|
||||
alert(data.message || 'Hata oluştu.');
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
alert('İşlem gerçekleştirilemedi.');
|
||||
})
|
||||
.finally(() => {
|
||||
isUpdatingSignature = false;
|
||||
btn.style.opacity = '1';
|
||||
});
|
||||
}
|
||||
|
||||
function renderSlide(index) {
|
||||
if (index < 0 || index >= journalEntries.length) return;
|
||||
|
||||
activeSlideIndex = index;
|
||||
const entry = journalEntries[index];
|
||||
|
||||
// Update indicator & select dropdown
|
||||
const indEl = document.getElementById('ijm-day-indicator');
|
||||
if (indEl) indEl.textContent = `Gün: ${index + 1} / ${journalEntries.length}`;
|
||||
const selEl = document.getElementById('ijm-day-select');
|
||||
if (selEl) selEl.value = index;
|
||||
|
||||
// Title & Date
|
||||
const titleEl = document.getElementById('ijm-slide-title');
|
||||
if (titleEl) titleEl.textContent = `${entry.day_number}. Gün Raporu`;
|
||||
const dateEl = document.getElementById('ijm-slide-date');
|
||||
if (dateEl) dateEl.textContent = entry.formatted_date;
|
||||
|
||||
// Retroactive badge
|
||||
const retroBadge = document.getElementById('ijm-slide-retroactive');
|
||||
if (retroBadge) {
|
||||
retroBadge.innerHTML = '';
|
||||
if (entry.filled && entry.is_retroactive) {
|
||||
retroBadge.innerHTML = `
|
||||
<span class="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-rose-50 text-rose-700 text-[10px] font-extrabold uppercase border border-rose-100">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-rose-500 animate-pulse"></span>
|
||||
Geriye Dönük
|
||||
</span>
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
// Content area
|
||||
const contentArea = document.getElementById('ijm-slide-content');
|
||||
const badgeDiv = document.getElementById('ijm-slide-status-badge');
|
||||
const actionBtn = document.getElementById('ijm-slide-action-btn');
|
||||
if (!contentArea || !badgeDiv || !actionBtn) return;
|
||||
|
||||
if (!entry.filled) {
|
||||
contentArea.innerHTML = `
|
||||
<div class="flex flex-col items-center justify-center p-8 text-center bg-slate-50 rounded-2xl border border-dashed border-slate-200">
|
||||
<i class="uil uil-file-slash text-3xl text-slate-400 mb-2"></i>
|
||||
<p class="text-sm font-medium text-slate-500">Bu gün için henüz staj raporu yazılmamıştır.</p>
|
||||
</div>
|
||||
`;
|
||||
badgeDiv.innerHTML = `<span class="text-xs text-slate-400 font-semibold">Boş Rapor</span>`;
|
||||
actionBtn.classList.add('hidden');
|
||||
} else {
|
||||
actionBtn.classList.remove('hidden');
|
||||
const entryContent = entry.content || '<p class="text-slate-400 italic">Boş içerik.</p>';
|
||||
contentArea.innerHTML = `<div class="rich-text-content prose max-w-none text-slate-700 leading-relaxed text-sm select-text">${entryContent}</div>`;
|
||||
|
||||
updateDayApprovalUI(entry.supervisor_approved, entry.supervisor_name);
|
||||
}
|
||||
}
|
||||
|
||||
function updateDayApprovalUI(approved, name) {
|
||||
const badgeDiv = document.getElementById('ijm-slide-status-badge');
|
||||
const actionBtn = document.getElementById('ijm-slide-action-btn');
|
||||
if (!badgeDiv || !actionBtn) return;
|
||||
|
||||
if (approved) {
|
||||
badgeDiv.innerHTML = `
|
||||
<span class="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-emerald-50 text-emerald-700 text-xs font-bold border border-emerald-100">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><polyline points="20 6 9 17 4 12"/></svg>
|
||||
Sorumlu Onayladı ${name ? `(${name})` : ''}
|
||||
</span>
|
||||
`;
|
||||
actionBtn.textContent = "Onayı Kaldır";
|
||||
actionBtn.className = "px-4 py-2 text-white bg-rose-600 hover:bg-rose-700 rounded-xl font-bold text-xs shadow-lg shadow-rose-500/20 transition-all cursor-pointer";
|
||||
} else {
|
||||
badgeDiv.innerHTML = `
|
||||
<span class="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-slate-100 text-slate-600 text-xs font-bold border border-slate-200">
|
||||
Onay Bekliyor
|
||||
</span>
|
||||
`;
|
||||
actionBtn.textContent = "Günü Onayla";
|
||||
actionBtn.className = "px-4 py-2 text-white bg-emerald-600 hover:bg-emerald-700 rounded-xl font-bold text-xs shadow-lg shadow-emerald-500/20 transition-all cursor-pointer";
|
||||
}
|
||||
}
|
||||
|
||||
function toggleActiveDayApproval() {
|
||||
if (isUpdatingDayApproval) return;
|
||||
|
||||
const entry = journalEntries[activeSlideIndex];
|
||||
if (!entry || !entry.entry_id) return;
|
||||
|
||||
const actionBtn = document.getElementById('ijm-slide-action-btn');
|
||||
if (!actionBtn) return;
|
||||
isUpdatingDayApproval = true;
|
||||
actionBtn.style.opacity = '0.5';
|
||||
|
||||
fetch('/stajyer/admin/toggle-approval', {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"X-CSRF-TOKEN": "{{ csrf_token() }}"
|
||||
},
|
||||
body: JSON.stringify({
|
||||
entry_id: entry.entry_id
|
||||
})
|
||||
})
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
if (data.success) {
|
||||
// Update local object
|
||||
entry.supervisor_approved = data.status;
|
||||
entry.supervisor_name = data.supervisor_name;
|
||||
|
||||
// Update UI
|
||||
updateDayApprovalUI(data.status, data.supervisor_name);
|
||||
|
||||
// Recalculate and update approved progress bar
|
||||
let approvedDaysCount = 0;
|
||||
journalEntries.forEach(e => {
|
||||
if (e.filled && e.supervisor_approved) {
|
||||
approvedDaysCount++;
|
||||
}
|
||||
});
|
||||
const approvedPercent = journalEntries.length > 0 ? (approvedDaysCount / journalEntries.length) * 100 : 0;
|
||||
|
||||
const appTextEl = document.getElementById('ijm-approved-text');
|
||||
if (appTextEl) appTextEl.textContent = `${approvedDaysCount} / ${journalEntries.length} Gün`;
|
||||
const appBarEl = document.getElementById('ijm-approved-progress');
|
||||
if (appBarEl) appBarEl.style.width = `${approvedPercent}%`;
|
||||
} else {
|
||||
alert(data.message || "Onay güncellenemedi.");
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
alert("İşlem sırasında bir hata oluştu.");
|
||||
})
|
||||
.finally(() => {
|
||||
isUpdatingDayApproval = false;
|
||||
actionBtn.style.opacity = '1';
|
||||
});
|
||||
}
|
||||
|
||||
function prevSlide() {
|
||||
if (activeSlideIndex > 0) {
|
||||
renderSlide(activeSlideIndex - 1);
|
||||
}
|
||||
}
|
||||
|
||||
function nextSlide() {
|
||||
if (activeSlideIndex < journalEntries.length - 1) {
|
||||
renderSlide(activeSlideIndex + 1);
|
||||
}
|
||||
}
|
||||
|
||||
function goToSlide(idx) {
|
||||
renderSlide(parseInt(idx));
|
||||
}
|
||||
|
||||
// Admin Tab Switch Logic
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const adminTabButtons = document.querySelectorAll('.admin-tab-btn');
|
||||
const adminTabPanels = document.querySelectorAll('.admin-tab-panel');
|
||||
|
||||
adminTabButtons.forEach(button => {
|
||||
button.addEventListener('click', () => {
|
||||
// Deactivate all buttons
|
||||
adminTabButtons.forEach(btn => {
|
||||
btn.classList.remove('active', 'bg-blue-50', 'border-blue-100', 'text-blue-900');
|
||||
btn.classList.add('text-slate-600', 'bg-transparent', 'border-transparent');
|
||||
btn.setAttribute('aria-selected', 'false');
|
||||
});
|
||||
|
||||
// Hide all panels
|
||||
adminTabPanels.forEach(panel => {
|
||||
panel.classList.add('hidden');
|
||||
});
|
||||
|
||||
// Activate clicked button
|
||||
button.classList.add('active', 'bg-blue-50', 'border-blue-100', 'text-blue-900');
|
||||
button.classList.remove('text-slate-600', 'bg-transparent', 'border-transparent');
|
||||
button.setAttribute('aria-selected', 'true');
|
||||
|
||||
// Show target panel
|
||||
const targetId = button.getAttribute('data-tab-target');
|
||||
const targetPanel = document.getElementById(targetId + '-panel');
|
||||
if (targetPanel) {
|
||||
targetPanel.classList.remove('hidden');
|
||||
|
||||
// Re-render DevExtreme Gantt chart if visible, to prevent rendering scale bugs
|
||||
if (targetId === 'gantt-chart') {
|
||||
const ganttEl = document.getElementById('gantt');
|
||||
if (ganttEl) {
|
||||
const ganttInstance = $(ganttEl).dxGantt('instance');
|
||||
if (ganttInstance) {
|
||||
ganttInstance.repaint();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,87 @@
|
||||
@extends('layouts.site')
|
||||
|
||||
@section('content')
|
||||
<section class="wrapper bg-[#f0f7ff] min-h-[70vh] flex items-center py-12">
|
||||
<div class="container px-4">
|
||||
<div class="max-w-md mx-auto bg-white/80 backdrop-blur-md rounded-3xl shadow-2xl border border-slate-100/50 overflow-hidden">
|
||||
<div class="p-8 md:p-10">
|
||||
<div class="text-center mb-8">
|
||||
<div class="inline-flex w-16 h-16 rounded-full bg-red-50 text-[#e31e24] items-center justify-center mb-4">
|
||||
<i class="uil uil-shield text-3xl"></i>
|
||||
</div>
|
||||
<h1 class="text-3xl font-extrabold text-slate-900 tracking-tight">Yönetici Girişi</h1>
|
||||
<p class="text-sm text-slate-500 mt-2">Staj takip sistemini yönetmek için e-posta ve şifrenizle giriş yapın.</p>
|
||||
</div>
|
||||
|
||||
@if($errors->any())
|
||||
<div class="bg-red-50 border-l-4 border-[#e31e24] p-4 rounded-xl mb-6">
|
||||
<div class="flex">
|
||||
<div class="flex-shrink-0">
|
||||
<i class="uil uil-exclamation-triangle text-[#e31e24] text-xl"></i>
|
||||
</div>
|
||||
<div class="ml-3">
|
||||
<p class="text-sm text-red-700 font-medium">
|
||||
{{ $errors->first() }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(session('success'))
|
||||
<div class="bg-green-50 border-l-4 border-green-500 p-4 rounded-xl mb-6">
|
||||
<div class="flex">
|
||||
<div class="flex-shrink-0">
|
||||
<i class="uil uil-check-circle text-green-500 text-xl"></i>
|
||||
</div>
|
||||
<div class="ml-3">
|
||||
<p class="text-sm text-green-700 font-medium">
|
||||
{{ session('success') }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form action="{{ route('intern.admin.login.submit') }}" method="POST" class="space-y-6">
|
||||
@csrf
|
||||
|
||||
<div class="space-y-2">
|
||||
<label for="email" class="text-sm font-bold text-slate-700 block">E-posta</label>
|
||||
<div class="relative">
|
||||
<span class="absolute inset-y-0 left-0 flex items-center pl-4 text-slate-400">
|
||||
<i class="uil uil-envelope"></i>
|
||||
</span>
|
||||
<input type="email" name="email" id="email" class="w-full pl-11 pr-5 py-3.5 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300" placeholder="E-posta adresinizi girin" value="{{ old('email') }}" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="space-y-2">
|
||||
<label for="password" class="text-sm font-bold text-slate-700 block">Şifre</label>
|
||||
<div class="relative">
|
||||
<span class="absolute inset-y-0 left-0 flex items-center pl-4 text-slate-400">
|
||||
<i class="uil uil-key-skeleton-alt"></i>
|
||||
</span>
|
||||
<input type="password" name="password" id="password" class="w-full pl-11 pr-5 py-3.5 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300" placeholder="Şifrenizi girin" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="w-full py-4 bg-[#e31e24] hover:bg-[#c4191f] text-white font-bold rounded-xl transition-all shadow-lg shadow-red-500/20 flex items-center justify-center gap-2 mt-4 hover:-translate-y-0.5">
|
||||
<span>Giriş Yap</span>
|
||||
<i class="uil uil-arrow-right text-xl"></i>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@push('styles')
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<style>
|
||||
.shadow-2xl {
|
||||
box-shadow: 0 1.5rem 4rem rgba(30, 41, 59, 0.08) !important;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
@endsection
|
||||
@@ -12,166 +12,358 @@
|
||||
|
||||
<section class="wrapper bg-white py-12 lg:py-20">
|
||||
<div class="container px-4">
|
||||
<div class="max-w-5xl mx-auto mb-16">
|
||||
<div class="bg-blue-50 border-l-4 border-blue-500 p-8 rounded-r-2xl shadow-sm">
|
||||
<!-- Wizard Progress Tracker -->
|
||||
<div class="max-w-3xl mx-auto mb-16">
|
||||
<div class="relative flex items-center justify-between">
|
||||
<!-- Progress Line -->
|
||||
<div class="absolute left-0 top-1/2 -translate-y-1/2 w-full h-1 bg-slate-100 -z-10 rounded-full">
|
||||
<div id="wizard-progress-bar" class="h-full bg-[#e31e24] rounded-full transition-all duration-500 w-[0%]"></div>
|
||||
</div>
|
||||
|
||||
<!-- Step 1 Dot -->
|
||||
<div class="flex flex-col items-center">
|
||||
<div id="step-dot-1" class="w-12 h-12 rounded-full bg-[#e31e24] text-white flex items-center justify-center font-extrabold shadow-lg shadow-red-500/20 transition-all duration-500 ring-4 ring-red-100">
|
||||
<i class="uil uil-info-circle text-xl"></i>
|
||||
</div>
|
||||
<span id="step-label-1" class="text-xs md:text-sm font-bold text-slate-800 mt-3 transition-all duration-300">{{ __('career.step_1_title') }}</span>
|
||||
</div>
|
||||
|
||||
<!-- Step 2 Dot -->
|
||||
<div class="flex flex-col items-center">
|
||||
<div id="step-dot-2" class="w-12 h-12 rounded-full bg-slate-100 text-slate-400 flex items-center justify-center font-extrabold transition-all duration-500 ring-4 ring-transparent">
|
||||
<i class="uil uil-file-download text-xl"></i>
|
||||
</div>
|
||||
<span id="step-label-2" class="text-xs md:text-sm font-medium text-slate-400 mt-3 transition-all duration-300">{{ __('career.step_2_title') }}</span>
|
||||
</div>
|
||||
|
||||
<!-- Step 3 Dot -->
|
||||
<div class="flex flex-col items-center">
|
||||
<div id="step-dot-3" class="w-12 h-12 rounded-full bg-slate-100 text-slate-400 flex items-center justify-center font-extrabold transition-all duration-500 ring-4 ring-transparent">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<span id="step-label-3" class="text-xs md:text-sm font-medium text-slate-400 mt-3 transition-all duration-300">{{ __('career.step_3_title') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Main Wizard Form Container -->
|
||||
<form action="{{ route('career.store') }}" method="POST" enctype="multipart/form-data" id="career-application-form">
|
||||
@csrf
|
||||
<input type="hidden" name="type" value="job">
|
||||
|
||||
<!-- ================= STEP 1: TERMS & CONDITIONS ================= -->
|
||||
<div id="step-content-1" class="wizard-step transition-all duration-500 opacity-100 block">
|
||||
<div class="max-w-5xl mx-auto mb-12">
|
||||
<div class="bg-blue-50 border-l-4 border-blue-500 p-8 rounded-r-2xl shadow-sm mb-12">
|
||||
<h4 class="text-xl font-bold text-blue-900 mb-4">{{ __('career.dear_developer') }}</h4>
|
||||
<div class="text-blue-800 space-y-4 leading-relaxed">
|
||||
<p>{!! __('career.intro_text_1') !!}</p>
|
||||
<p>{!! __('career.intro_text_2') !!}</p>
|
||||
<p>{{ __('career.intro_text_3') }}</p>
|
||||
<p>{{ __('career.intro_text_4') }}</p>
|
||||
<p>{{ __('career.thanks') }}</p>
|
||||
<div class="pt-4 border-t border-blue-200 mt-4 text-sm font-medium">
|
||||
{!! __('career.company_details') !!}
|
||||
<p>{!! __('career.intro_text_1') !!}</p>
|
||||
<p>{!! __('career.intro_text_2') !!}</p>
|
||||
<div class="bg-white/80 p-6 rounded-2xl border border-blue-100 my-6 space-y-4 text-sm shadow-sm">
|
||||
<span class="font-extrabold text-blue-950 block text-base"><i class="uil uil-shield-check text-lg mr-1 text-[#e31e24]"></i> {{ __('career.kvkk_title') }}</span>
|
||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
||||
<div class="p-4 bg-slate-50/50 rounded-xl border border-slate-100">
|
||||
<span class="font-bold text-slate-800 block mb-2"><i class="uil uil-lock text-[#e31e24] mr-1"></i> {{ __('career.kvkk_nda_title') }}</span>
|
||||
<p class="text-xs text-slate-600 leading-relaxed">{{ __('career.kvkk_nda_desc') }}</p>
|
||||
</div>
|
||||
<div class="p-4 bg-slate-50/50 rounded-xl border border-slate-100">
|
||||
<span class="font-bold text-slate-800 block mb-2"><i class="uil uil-file-contract-sign text-blue-500 mr-1"></i> {{ __('career.kvkk_contract_title') }}</span>
|
||||
<p class="text-xs text-slate-600 leading-relaxed">{{ __('career.kvkk_contract_desc') }}</p>
|
||||
</div>
|
||||
<div class="p-4 bg-slate-50/50 rounded-xl border border-slate-100">
|
||||
<span class="font-bold text-slate-800 block mb-2"><i class="uil uil-card-atm text-emerald-500 mr-1"></i> {{ __('career.kvkk_id_title') }}</span>
|
||||
<p class="text-xs text-slate-600 leading-relaxed">{{ __('career.kvkk_id_desc') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-center mb-12">
|
||||
<h2 class="text-xs uppercase font-bold tracking-widest text-[#e31e24] mb-2">{{ __('career.working_model_title') }}</h2>
|
||||
<h3 class="text-3xl md:text-4xl font-extrabold text-slate-900">{{ __('career.working_model_subtitle') }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col lg:flex-row items-center gap-12 mb-20 max-w-6xl mx-auto">
|
||||
<div class="w-full lg:w-3/5">
|
||||
<div class="bg-white p-4 md:p-8 rounded-3xl shadow-2xl border border-slate-100 overflow-hidden flex justify-center">
|
||||
<img src="{{ asset('assets/ik-flowchat.png') }}" alt="{{ __('career.working_model_title') }}" class="w-full h-auto rounded-xl">
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-full lg:w-2/5 space-y-8">
|
||||
<h4 class="text-2xl font-bold text-slate-900">{{ __('career.terms_title') }}</h4>
|
||||
<div class="space-y-6">
|
||||
<div class="flex items-start gap-4">
|
||||
<div class="flex-shrink-0 w-8 h-8 rounded-full bg-red-50 flex items-center justify-center text-[#e31e24]">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="font-bold text-slate-800 block text-sm">{{ __('career.fully_remote') }}</span>
|
||||
<p class="text-sm text-slate-500">{{ __('career.fully_remote_desc') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-start gap-4">
|
||||
<div class="flex-shrink-0 w-8 h-8 rounded-full bg-red-50 flex items-center justify-center text-[#e31e24]">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="font-bold text-slate-800 block text-sm">{{ __('career.independent_contractor') }}</span>
|
||||
<p class="text-sm text-slate-500">{{ __('career.independent_contractor_desc') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-start gap-4">
|
||||
<div class="flex-shrink-0 w-8 h-8 rounded-full bg-red-50 flex items-center justify-center text-[#e31e24]">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="font-bold text-slate-800 block text-sm">{{ __('career.mandatory_documents') }}</span>
|
||||
<p class="text-sm text-slate-500">{{ __('career.mandatory_documents_desc') }}</p>
|
||||
<div class="mt-2 flex flex-wrap gap-3">
|
||||
<a href="https://docs.google.com/document/d/1WwDo_zgx4KjdnX6ohJaCfPQSS0-eRN41OB1HYvAmDO4/edit?usp=sharing" target="_blank" class="text-xs font-bold text-blue-600 hover:underline flex items-center gap-1">
|
||||
<i class="uil uil-file-download"></i> {{ __('career.nda_label') }}
|
||||
</a>
|
||||
<a href="https://docs.google.com/document/d/1VofpJIxmQmxSLk6OxsDjCtrMte0UkAFCSaQfZCS2DP8/edit?usp=sharing" target="_blank" class="text-xs font-bold text-blue-600 hover:underline flex items-center gap-1">
|
||||
<i class="uil uil-file-download"></i> {{ __('career.contract_label') }}
|
||||
</a>
|
||||
</div>
|
||||
<p>{{ __('career.intro_text_3') }}</p>
|
||||
<p>{{ __('career.intro_text_4') }}</p>
|
||||
<p>{{ __('career.thanks') }}</p>
|
||||
<div class="pt-4 border-t border-blue-200 mt-4 text-sm font-medium">
|
||||
{!! __('career.company_details') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="max-w-4xl mx-auto">
|
||||
<div class="bg-white rounded-[2rem] shadow-2xl overflow-hidden border border-slate-100">
|
||||
<div class="p-8 md:p-12">
|
||||
<div class="mb-10 text-center">
|
||||
<h2 class="text-3xl font-bold text-slate-900 mb-2">{{ __('career.form_title') }}</h2>
|
||||
<p class="text-slate-500">{{ __('career.form_subtitle') }}</p>
|
||||
<div class="w-12 h-1 bg-[#e31e24] rounded-full mx-auto mt-4"></div>
|
||||
<div class="text-center mb-12">
|
||||
<h2 class="text-xs uppercase font-bold tracking-widest text-[#e31e24] mb-2">{{ __('career.working_model_title') }}</h2>
|
||||
<h3 class="text-3xl md:text-4xl font-extrabold text-slate-900">{{ __('career.working_model_subtitle') }}</h3>
|
||||
</div>
|
||||
|
||||
<form action="{{ route('career.store') }}" method="POST" enctype="multipart/form-data" class="space-y-6" id="career-application-form">
|
||||
@csrf
|
||||
<input type="hidden" name="type" value="job">
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="name" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.name') }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="text" name="name" id="name" class="w-full px-5 py-3 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300" placeholder="Örn: Ahmet Yılmaz" value="{{ old('name') }}" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col lg:flex-row gap-12 items-start mb-12">
|
||||
<!-- Mermaid Flowchart Canvas -->
|
||||
<div class="w-full lg:w-3/5">
|
||||
<div id="mermaid-card" class="relative bg-white p-6 md:p-8 rounded-3xl shadow-xl border border-slate-100 overflow-x-auto flex flex-col items-center">
|
||||
<!-- Fullscreen Toggle Button -->
|
||||
<button type="button" onclick="toggleFullscreen()" class="absolute top-4 right-4 p-2.5 rounded-xl bg-slate-50 hover:bg-slate-100 border border-slate-100 hover:border-slate-200 text-slate-500 hover:text-slate-700 transition-all duration-200 shadow-sm flex items-center justify-center z-10" title="Tam Ekran / Fullscreen">
|
||||
<i id="fullscreen-icon" class="uil uil-expand-arrows-alt text-lg"></i>
|
||||
</button>
|
||||
<span class="text-xs font-bold text-slate-400 uppercase tracking-widest mb-4"><i class="uil uil-presentation-play mr-1"></i> {{ __('career.hr_flow_diagram') }}</span>
|
||||
<div class="mermaid w-full flex justify-center" style="min-height: 500px;">
|
||||
graph TD
|
||||
%% Styles
|
||||
classDef startNode fill:#3b82f6,stroke:#1d4ed8,stroke-width:2px,color:#fff,font-weight:bold,rx:10px,ry:10px;
|
||||
classDef decisionNode fill:#eab308,stroke:#ca8a04,stroke-width:2px,color:#1e293b,font-weight:bold;
|
||||
classDef processNode fill:#10b981,stroke:#047857,stroke-width:2px,color:#fff,font-weight:bold,rx:5px,ry:5px;
|
||||
classDef rejectNode fill:#ef4444,stroke:#b91c1c,stroke-width:2px,color:#fff,font-weight:bold,rx:5px,ry:5px;
|
||||
classDef actionNode fill:#8b5cf6,stroke:#6d28d9,stroke-width:2px,color:#fff,font-weight:bold,rx:5px,ry:5px;
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="email" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.email') }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="email" name="email" id="email" class="w-full px-5 py-3 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300" placeholder="Örn: ahmet@example.com" value="{{ old('email') }}" required>
|
||||
</div>
|
||||
</div>
|
||||
Start["{{ __('career.mermaid_start') }}"]:::startNode
|
||||
Dec1{"{{ __('career.mermaid_dec1') }}"}:::decisionNode
|
||||
Red1["{{ __('career.mermaid_red1') }}"]:::rejectNode
|
||||
GitAccess["{{ __('career.mermaid_git') }}"]:::processNode
|
||||
SampleTask["{{ __('career.mermaid_sample') }}"]:::processNode
|
||||
Dec2{"{{ __('career.mermaid_dec2') }}"}:::decisionNode
|
||||
Red2["{{ __('career.mermaid_red2') }}"]:::rejectNode
|
||||
Issues["{{ __('career.mermaid_issues') }}"]:::processNode
|
||||
Dec3{"{{ __('career.mermaid_dec3') }}"}:::decisionNode
|
||||
WaitTask["{{ __('career.mermaid_wait') }}"]:::actionNode
|
||||
Assign["{{ __('career.mermaid_assign') }}"]:::processNode
|
||||
WorkStart["{{ __('career.mermaid_work') }}"]:::processNode
|
||||
Review["{{ __('career.mermaid_review') }}"]:::processNode
|
||||
Dec4{"{{ __('career.mermaid_dec4') }}"}:::decisionNode
|
||||
Feedback["{{ __('career.mermaid_feedback') }}"]:::actionNode
|
||||
Payment["{{ __('career.mermaid_payment') }}"]:::processNode
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="phone" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.phone') }}</label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="text" name="phone" id="phone" class="w-full px-5 py-3 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300" placeholder="Örn: 05XX XXX XX XX" value="{{ old('phone') }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="cv" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.cv') }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="file" name="cv" id="cv" class="w-full px-5 py-2.5 rounded-xl border border-slate-200 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-xs file:font-semibold file:bg-red-50 file:text-[#e31e24] hover:file:bg-red-100 transition-all" required>
|
||||
<p class="mt-2 text-xs text-slate-400">{{ __('career.cv_description') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="nda" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.nda') }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="file" name="nda" id="nda" class="w-full px-5 py-2.5 rounded-xl border border-slate-200 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-xs file:font-semibold file:bg-red-50 file:text-[#e31e24] hover:file:bg-red-100 transition-all" required>
|
||||
<p class="mt-2 text-xs text-slate-400">{{ __('career.nda_description') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="contract" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.contract') }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="file" name="contract" id="contract" class="w-full px-5 py-2.5 rounded-xl border border-slate-200 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-xs file:font-semibold file:bg-red-50 file:text-[#e31e24] hover:file:bg-red-100 transition-all" required>
|
||||
<p class="mt-2 text-xs text-slate-400">{{ __('career.contract_description') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6">
|
||||
<div class="md:col-start-4 md:col-span-9 space-y-4">
|
||||
<div class="flex items-center gap-3">
|
||||
<input type="checkbox" name="git_knowledge" id="git_knowledge" class="w-5 h-5 rounded border-slate-300 text-[#e31e24] focus:ring-[#e31e24]" required>
|
||||
<label for="git_knowledge" class="text-sm text-slate-700 font-medium">{{ __('career.git_confirmation') }} <span class="text-[#e31e24]">*</span></label>
|
||||
</div>
|
||||
<div class="flex items-center gap-3">
|
||||
<input type="checkbox" name="ai_usage" id="ai_usage" class="w-5 h-5 rounded border-slate-300 text-[#e31e24] focus:ring-[#e31e24]" required>
|
||||
<label for="ai_usage" class="text-sm text-slate-700 font-medium">{{ __('career.ai_confirmation') }} <span class="text-[#e31e24]">*</span></label>
|
||||
Start --> Dec1
|
||||
Dec1 -- "Hayır" --> Red1
|
||||
Dec1 -- "Evet" --> GitAccess
|
||||
GitAccess --> SampleTask
|
||||
SampleTask --> Dec2
|
||||
Dec2 -- "Hayır" --> Red2
|
||||
Dec2 -- "Evet" --> Issues
|
||||
Issues --> Dec3
|
||||
Dec3 -- "Hayır" --> WaitTask
|
||||
Dec3 -- "Evet" --> Assign
|
||||
Assign --> WorkStart
|
||||
WorkStart --> Review
|
||||
Review --> Dec4
|
||||
Dec4 -- "Hayır" --> Feedback
|
||||
Feedback --> WorkStart
|
||||
Dec4 -- "Evet" --> Payment
|
||||
Payment --> Issues
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-start">
|
||||
<label for="message" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right pt-3">{{ __('career.message') }}</label>
|
||||
<div class="md:col-span-9">
|
||||
<textarea name="message" id="message" class="w-full px-5 py-4 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300 min-h-[150px]" placeholder="{{ __('career.message_placeholder') }}">{{ old('message') }}</textarea>
|
||||
<!-- Terms & Conditions Bullet Points -->
|
||||
<div class="w-full lg:w-2/5 space-y-8">
|
||||
<h4 class="text-2xl font-bold text-slate-900">{{ __('career.terms_title') }}</h4>
|
||||
<div class="space-y-6">
|
||||
<div class="flex items-start gap-4">
|
||||
<div class="flex-shrink-0 w-8 h-8 rounded-full bg-red-50 flex items-center justify-center text-[#e31e24]">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="font-bold text-slate-800 block text-sm">{{ __('career.fully_remote') }}</span>
|
||||
<p class="text-sm text-slate-500">{{ __('career.fully_remote_desc') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-start gap-4">
|
||||
<div class="flex-shrink-0 w-8 h-8 rounded-full bg-red-50 flex items-center justify-center text-[#e31e24]">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="font-bold text-slate-800 block text-sm">{{ __('career.independent_contractor') }}</span>
|
||||
<p class="text-sm text-slate-500">{{ __('career.independent_contractor_desc') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-start gap-4">
|
||||
<div class="flex-shrink-0 w-8 h-8 rounded-full bg-red-50 flex items-center justify-center text-[#e31e24]">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="font-bold text-slate-800 block text-sm">{{ __('career.mandatory_documents') }}</span>
|
||||
<p class="text-sm text-slate-500">{{ __('career.mandatory_documents_desc') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6">
|
||||
<div class="md:col-start-4 md:col-span-9">
|
||||
<button type="submit" id="submit-btn" class="w-full md:w-auto px-10 py-4 bg-[#e31e24] hover:bg-[#c4191f] text-white font-bold rounded-full transition-all shadow-lg shadow-red-500/30 flex items-center justify-center gap-3">
|
||||
<span class="btn-text">{{ __('career.submit') }}</span>
|
||||
<span class="spinner-border spinner-border-sm hidden animate-spin w-4 h-4 border-2 border-white border-t-transparent rounded-full" role="status"></span>
|
||||
<i class="uil uil-arrow-right text-xl btn-icon"></i>
|
||||
<!-- Terms Acceptance Checkbox -->
|
||||
<div class="bg-slate-50 p-6 rounded-2xl border border-slate-100 mt-8 space-y-4">
|
||||
<div class="flex items-start gap-3">
|
||||
<input type="checkbox" id="terms-accept-checkbox" class="w-5 h-5 rounded border-slate-300 text-[#e31e24] focus:ring-[#e31e24] mt-1 cursor-pointer">
|
||||
<label for="terms-accept-checkbox" class="text-sm text-slate-700 font-semibold cursor-pointer">
|
||||
{{ __('career.terms_accept_label') }} <span class="text-[#e31e24]">*</span>
|
||||
</label>
|
||||
</div>
|
||||
<button type="button" onclick="nextStep(2)" id="step-1-next-btn" class="w-full py-4 bg-slate-300 text-slate-500 font-bold rounded-xl transition-all flex items-center justify-center gap-2 cursor-not-allowed" disabled>
|
||||
<span>{{ __('career.accept_terms_btn') }}</span>
|
||||
<i class="uil uil-arrow-right text-lg"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= STEP 2: DOWNLOAD FORMS ================= -->
|
||||
<div id="step-content-2" class="wizard-step transition-all duration-500 opacity-0 hidden">
|
||||
<div class="max-w-4xl mx-auto mb-12">
|
||||
<div class="text-center mb-10">
|
||||
<h2 class="text-3xl font-extrabold text-slate-900 mb-2">{{ __('career.download_required_documents') }}</h2>
|
||||
<p class="text-slate-500 max-w-xl mx-auto">{{ __('career.download_required_documents_desc') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 mb-12">
|
||||
<!-- NDA Download Card -->
|
||||
<div class="bg-white p-8 rounded-3xl border border-slate-100 shadow-xl flex flex-col justify-between hover:shadow-2xl hover:border-red-500/20 transition-all duration-300">
|
||||
<div>
|
||||
<div class="w-14 h-14 rounded-2xl bg-red-50 flex items-center justify-center text-[#e31e24] mb-6">
|
||||
<i class="uil uil-shield-check text-3xl"></i>
|
||||
</div>
|
||||
<h4 class="text-xl font-bold text-slate-900 mb-3">{{ __('career.nda_label') }}</h4>
|
||||
<p class="text-sm text-slate-500 leading-relaxed mb-6">{{ __('career.nda_card_desc') }}</p>
|
||||
</div>
|
||||
<a href="https://docs.google.com/document/d/1WwDo_zgx4KjdnX6ohJaCfPQSS0-eRN41OB1HYvAmDO4/edit?usp=sharing" target="_blank" class="w-full py-3.5 bg-slate-50 hover:bg-red-50 hover:text-[#e31e24] text-slate-700 font-bold rounded-xl transition-all border border-slate-100 hover:border-red-100 flex items-center justify-center gap-2">
|
||||
<i class="uil uil-file-download"></i> {{ __('career.review_download_document') }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Contractor Agreement Download Card -->
|
||||
<div class="bg-white p-8 rounded-3xl border border-slate-100 shadow-xl flex flex-col justify-between hover:shadow-2xl hover:border-red-500/20 transition-all duration-300">
|
||||
<div>
|
||||
<div class="w-14 h-14 rounded-2xl bg-blue-50 flex items-center justify-center text-blue-500 mb-6">
|
||||
<i class="uil uil-file-contract-sign text-3xl"></i>
|
||||
</div>
|
||||
<h4 class="text-xl font-bold text-slate-900 mb-3">{{ __('career.contract_label') }}</h4>
|
||||
<p class="text-sm text-slate-500 leading-relaxed mb-6">{{ __('career.contract_card_desc') }}</p>
|
||||
</div>
|
||||
<a href="https://docs.google.com/document/d/1VofpJIxmQmxSLk6OxsDjCtrMte0UkAFCSaQfZCS2DP8/edit?usp=sharing" target="_blank" class="w-full py-3.5 bg-slate-50 hover:bg-red-50 hover:text-[#e31e24] text-slate-700 font-bold rounded-xl transition-all border border-slate-100 hover:border-red-100 flex items-center justify-center gap-2">
|
||||
<i class="uil uil-file-download"></i> {{ __('career.review_download_document') }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Step 2 Navigation -->
|
||||
<div class="flex items-center justify-between border-t border-slate-100 pt-8">
|
||||
<button type="button" onclick="prevStep(1)" class="px-6 py-3.5 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold rounded-xl transition-all flex items-center gap-2">
|
||||
<i class="uil uil-arrow-left text-lg"></i>
|
||||
<span>{{ __('career.go_back') }}</span>
|
||||
</button>
|
||||
<button type="button" onclick="nextStep(3)" class="px-8 py-3.5 bg-[#e31e24] hover:bg-[#c4191f] text-white font-bold rounded-xl transition-all shadow-lg shadow-red-500/20 flex items-center gap-2">
|
||||
<span>{{ __('career.downloaded_next_btn') }}</span>
|
||||
<i class="uil uil-arrow-right text-lg"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= STEP 3: COMPLETE APPLICATION ================= -->
|
||||
<div id="step-content-3" class="wizard-step transition-all duration-500 opacity-0 hidden">
|
||||
<div class="max-w-4xl mx-auto">
|
||||
<div class="bg-white rounded-[2rem] shadow-2xl overflow-hidden border border-slate-100">
|
||||
<div class="p-8 md:p-12">
|
||||
<div class="mb-10 text-center">
|
||||
<h2 class="text-3xl font-bold text-slate-900 mb-2">{{ __('career.form_title') }}</h2>
|
||||
<p class="text-slate-500">{{ __('career.form_subtitle') }}</p>
|
||||
<div class="w-12 h-1 bg-[#e31e24] rounded-full mx-auto mt-4"></div>
|
||||
</div>
|
||||
|
||||
<div class="space-y-6">
|
||||
<!-- Name -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="name" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.name') }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="text" name="name" id="name" class="w-full px-5 py-3 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300" placeholder="{{ __('career.name_placeholder') }}" value="{{ old('name') }}" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Email -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="email" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.email') }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="email" name="email" id="email" class="w-full px-5 py-3 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300" placeholder="{{ __('career.email_placeholder') }}" value="{{ old('email') }}" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Phone -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="phone" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.phone') }}</label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="text" name="phone" id="phone" class="w-full px-5 py-3 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300" placeholder="{{ __('career.phone_placeholder') }}" value="{{ old('phone') }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- CV Upload -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="cv" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.cv') }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="file" name="cv" id="cv" class="w-full px-5 py-2.5 rounded-xl border border-slate-200 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-xs file:font-semibold file:bg-red-50 file:text-[#e31e24] hover:file:bg-red-100 transition-all" required>
|
||||
<p class="mt-2 text-xs text-slate-400">{{ __('career.cv_description') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- NDA Upload -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="nda" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.nda') }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="file" name="nda" id="nda" class="w-full px-5 py-2.5 rounded-xl border border-slate-200 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-xs file:font-semibold file:bg-red-50 file:text-[#e31e24] hover:file:bg-red-100 transition-all" required>
|
||||
<p class="mt-2 text-xs text-slate-400">{{ __('career.nda_description') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Contract Upload -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="contract" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.contract') }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="file" name="contract" id="contract" class="w-full px-5 py-2.5 rounded-xl border border-slate-200 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-xs file:font-semibold file:bg-red-50 file:text-[#e31e24] hover:file:bg-red-100 transition-all" required>
|
||||
<p class="mt-2 text-xs text-slate-400">{{ __('career.contract_description') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ID Photocopy Upload -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="id_photocopy" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.id_photocopy') }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="file" name="id_photocopy" id="id_photocopy" class="w-full px-5 py-2.5 rounded-xl border border-slate-200 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-xs file:font-semibold file:bg-red-50 file:text-[#e31e24] hover:file:bg-red-100 transition-all" required>
|
||||
<p class="mt-2 text-xs text-slate-400">{{ __('career.id_photocopy_description') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Checkboxes -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6">
|
||||
<div class="md:col-start-4 md:col-span-9 space-y-4">
|
||||
<div class="flex items-center gap-3">
|
||||
<input type="checkbox" name="git_knowledge" id="git_knowledge" class="w-5 h-5 rounded border-slate-300 text-[#e31e24] focus:ring-[#e31e24]" required>
|
||||
<label for="git_knowledge" class="text-sm text-slate-700 font-medium">{{ __('career.git_confirmation') }} <span class="text-[#e31e24]">*</span></label>
|
||||
</div>
|
||||
<div class="flex items-center gap-3">
|
||||
<input type="checkbox" name="ai_usage" id="ai_usage" class="w-5 h-5 rounded border-slate-300 text-[#e31e24] focus:ring-[#e31e24]" required>
|
||||
<label for="ai_usage" class="text-sm text-slate-700 font-medium">{{ __('career.ai_confirmation') }} <span class="text-[#e31e24]">*</span></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Message -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-start">
|
||||
<label for="message" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right pt-3">{{ __('career.message') }}</label>
|
||||
<div class="md:col-span-9">
|
||||
<textarea name="message" id="message" class="w-full px-5 py-4 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300 min-h-[150px]" placeholder="{{ __('career.message_placeholder') }}">{{ old('message') }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Step 3 Navigation -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 pt-6 border-t border-slate-100">
|
||||
<div class="md:col-start-4 md:col-span-9 flex items-center justify-between gap-4">
|
||||
<button type="button" onclick="prevStep(2)" class="px-6 py-4 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold rounded-xl transition-all flex items-center gap-2">
|
||||
<i class="uil uil-arrow-left text-lg"></i>
|
||||
<span>{{ __('career.go_back') }}</span>
|
||||
</button>
|
||||
|
||||
<button type="submit" id="submit-btn" class="flex-1 md:flex-none px-10 py-4 bg-[#e31e24] hover:bg-[#c4191f] text-white font-bold rounded-full transition-all shadow-lg shadow-red-500/30 flex items-center justify-center gap-3">
|
||||
<span class="btn-text">{{ __('career.submit') }}</span>
|
||||
<span class="spinner-border spinner-border-sm hidden animate-spin w-4 h-4 border-2 border-white border-t-transparent rounded-full" role="status"></span>
|
||||
<i class="uil uil-arrow-right text-xl btn-icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -281,10 +473,212 @@
|
||||
padding-left: 2rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Mermaid diagram readability and aesthetics */
|
||||
.mermaid .nodeLabel,
|
||||
.mermaid .node text,
|
||||
.mermaid text,
|
||||
.mermaid .node .label {
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 0, 0, 0.2) !important;
|
||||
padding: 2px 8px !important;
|
||||
}
|
||||
|
||||
.mermaid .node.decisionNode .nodeLabel,
|
||||
.mermaid .node.decisionNode text,
|
||||
.mermaid .node.decisionNode .label {
|
||||
text-shadow: none !important;
|
||||
color: #1e293b !important;
|
||||
}
|
||||
|
||||
.mermaid svg {
|
||||
filter: drop-shadow(0px 10px 20px rgba(15, 23, 42, 0.05));
|
||||
}
|
||||
|
||||
/* Fullscreen styles for card container */
|
||||
#mermaid-card:fullscreen,
|
||||
#mermaid-card:-webkit-full-screen,
|
||||
#mermaid-card:-ms-fullscreen {
|
||||
background-color: #ffffff !important;
|
||||
padding: 3rem 2rem !important;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
overflow: auto !important;
|
||||
border-radius: 0px !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@push('scripts')
|
||||
<script src="https://cdn.jsdelivr.net/npm/mermaid@10.2.4/dist/mermaid.min.js"></script>
|
||||
<script>
|
||||
// Initialize Mermaid
|
||||
mermaid.initialize({
|
||||
startOnLoad: false,
|
||||
theme: 'neutral',
|
||||
securityLevel: 'loose',
|
||||
flowchart: {
|
||||
useMaxWidth: true,
|
||||
htmlLabels: true
|
||||
}
|
||||
});
|
||||
|
||||
// Run mermaid after all fonts are fully loaded to ensure boxes match the text dimensions perfectly
|
||||
if (document.fonts) {
|
||||
document.fonts.ready.then(function() {
|
||||
mermaid.run({
|
||||
nodes: document.querySelectorAll('.mermaid')
|
||||
});
|
||||
});
|
||||
} else {
|
||||
window.addEventListener('load', function() {
|
||||
mermaid.run({
|
||||
nodes: document.querySelectorAll('.mermaid')
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// Fullscreen toggle logic for Mermaid card
|
||||
function toggleFullscreen() {
|
||||
const card = document.getElementById('mermaid-card');
|
||||
const icon = document.getElementById('fullscreen-icon');
|
||||
|
||||
if (!document.fullscreenElement && !document.webkitFullscreenElement && !document.msFullscreenElement) {
|
||||
if (card.requestFullscreen) {
|
||||
card.requestFullscreen();
|
||||
} else if (card.webkitRequestFullscreen) { /* Safari */
|
||||
card.webkitRequestFullscreen();
|
||||
} else if (card.msRequestFullscreen) { /* IE11 */
|
||||
card.msRequestFullscreen();
|
||||
}
|
||||
} else {
|
||||
if (document.exitFullscreen) {
|
||||
document.exitFullscreen();
|
||||
} else if (document.webkitExitFullscreen) {
|
||||
document.webkitExitFullscreen();
|
||||
} else if (document.msExitFullscreen) {
|
||||
document.msExitFullscreen();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Handle icon sync on fullscreen change
|
||||
function handleFullscreenChange() {
|
||||
const icon = document.getElementById('fullscreen-icon');
|
||||
if (document.fullscreenElement || document.webkitFullscreenElement || document.msFullscreenElement) {
|
||||
icon.className = "uil uil-shrink text-lg";
|
||||
} else {
|
||||
icon.className = "uil uil-expand-arrows-alt text-lg";
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener('fullscreenchange', handleFullscreenChange);
|
||||
document.addEventListener('webkitfullscreenchange', handleFullscreenChange);
|
||||
document.addEventListener('msfullscreenchange', handleFullscreenChange);
|
||||
|
||||
// Step variables
|
||||
let currentStep = 1;
|
||||
|
||||
// Track Terms checkbox to enable Step 1 Next button
|
||||
document.getElementById('terms-accept-checkbox').addEventListener('change', function(e) {
|
||||
const nextBtn = document.getElementById('step-1-next-btn');
|
||||
if (e.target.checked) {
|
||||
nextBtn.disabled = false;
|
||||
nextBtn.classList.remove('bg-slate-300', 'text-slate-500', 'cursor-not-allowed');
|
||||
nextBtn.classList.add('bg-[#e31e24]', 'text-white', 'hover:bg-[#c4191f]', 'shadow-lg', 'shadow-red-500/20');
|
||||
} else {
|
||||
nextBtn.disabled = true;
|
||||
nextBtn.classList.add('bg-slate-300', 'text-slate-500', 'cursor-not-allowed');
|
||||
nextBtn.classList.remove('bg-[#e31e24]', 'text-white', 'hover:bg-[#c4191f]', 'shadow-lg', 'shadow-red-500/20');
|
||||
}
|
||||
});
|
||||
|
||||
function updateProgressBar() {
|
||||
const progressPercent = ((currentStep - 1) / 2) * 100;
|
||||
document.getElementById('wizard-progress-bar').style.width = `${progressPercent}%`;
|
||||
|
||||
// Reset indicator classes
|
||||
for (let i = 1; i <= 3; i++) {
|
||||
const dot = document.getElementById(`step-dot-${i}`);
|
||||
const label = document.getElementById(`step-label-${i}`);
|
||||
|
||||
if (i < currentStep) {
|
||||
// Completed Step
|
||||
dot.className = "w-12 h-12 rounded-full bg-emerald-500 text-white flex items-center justify-center font-extrabold shadow-lg shadow-emerald-500/20 ring-4 ring-emerald-100 transition-all duration-500";
|
||||
dot.innerHTML = `<i class="uil uil-check text-xl"></i>`;
|
||||
label.className = "text-xs md:text-sm font-bold text-slate-800 mt-3";
|
||||
} else if (i === currentStep) {
|
||||
// Active Step
|
||||
dot.className = "w-12 h-12 rounded-full bg-[#e31e24] text-white flex items-center justify-center font-extrabold shadow-lg shadow-red-500/20 ring-4 ring-red-100 transition-all duration-500";
|
||||
if (i === 1) dot.innerHTML = `<i class="uil uil-info-circle text-xl"></i>`;
|
||||
if (i === 2) dot.innerHTML = `<i class="uil uil-file-download text-xl"></i>`;
|
||||
if (i === 3) dot.innerHTML = `<i class="uil uil-check-circle text-xl"></i>`;
|
||||
label.className = "text-xs md:text-sm font-bold text-slate-800 mt-3";
|
||||
} else {
|
||||
// Pending Step
|
||||
dot.className = "w-12 h-12 rounded-full bg-slate-100 text-slate-400 flex items-center justify-center font-extrabold ring-4 ring-transparent transition-all duration-500";
|
||||
if (i === 2) dot.innerHTML = `<i class="uil uil-file-download text-xl"></i>`;
|
||||
if (i === 3) dot.innerHTML = `<i class="uil uil-check-circle text-xl"></i>`;
|
||||
label.className = "text-xs md:text-sm font-medium text-slate-400 mt-3";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function nextStep(step) {
|
||||
if (step === 2 && !document.getElementById('terms-accept-checkbox').checked) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Hide current step content with nice fade animation
|
||||
const currentStepEl = document.getElementById(`step-content-${currentStep}`);
|
||||
currentStepEl.classList.remove('opacity-100');
|
||||
currentStepEl.classList.add('opacity-0');
|
||||
|
||||
setTimeout(() => {
|
||||
currentStepEl.classList.add('hidden');
|
||||
|
||||
// Show next step content
|
||||
const nextStepEl = document.getElementById(`step-content-${step}`);
|
||||
nextStepEl.classList.remove('hidden');
|
||||
|
||||
// Force repaint to trigger animation
|
||||
nextStepEl.offsetHeight;
|
||||
|
||||
nextStepEl.classList.remove('opacity-0');
|
||||
nextStepEl.classList.add('opacity-100');
|
||||
|
||||
currentStep = step;
|
||||
updateProgressBar();
|
||||
window.scrollTo({ top: document.querySelector('.wrapper').offsetTop - 50, behavior: 'smooth' });
|
||||
}, 200);
|
||||
}
|
||||
|
||||
function prevStep(step) {
|
||||
const currentStepEl = document.getElementById(`step-content-${currentStep}`);
|
||||
currentStepEl.classList.remove('opacity-100');
|
||||
currentStepEl.classList.add('opacity-0');
|
||||
|
||||
setTimeout(() => {
|
||||
currentStepEl.classList.add('hidden');
|
||||
|
||||
const prevStepEl = document.getElementById(`step-content-${step}`);
|
||||
prevStepEl.classList.remove('hidden');
|
||||
|
||||
prevStepEl.offsetHeight;
|
||||
|
||||
prevStepEl.classList.remove('opacity-0');
|
||||
prevStepEl.classList.add('opacity-100');
|
||||
|
||||
currentStep = step;
|
||||
updateProgressBar();
|
||||
window.scrollTo({ top: document.querySelector('.wrapper').offsetTop - 50, behavior: 'smooth' });
|
||||
}, 200);
|
||||
}
|
||||
</script>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
@@ -337,6 +731,10 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
confirmButtonText: '{{ __("career.ok") ?? "Tamam" }}'
|
||||
}).then(() => {
|
||||
form.reset();
|
||||
// Go back to step 1
|
||||
document.getElementById('terms-accept-checkbox').checked = false;
|
||||
document.getElementById('terms-accept-checkbox').dispatchEvent(new Event('change'));
|
||||
prevStep(1);
|
||||
});
|
||||
} else if (result.type === 'validation') {
|
||||
Object.keys(result.errors).forEach(key => {
|
||||
@@ -344,14 +742,14 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
if (input) {
|
||||
input.classList.add('is-invalid');
|
||||
const errorDiv = document.createElement('div');
|
||||
errorDiv.className = 'invalid-feedback text-start d-block';
|
||||
errorDiv.className = 'invalid-feedback text-start text-xs text-red-500 mt-1 block';
|
||||
errorDiv.textContent = result.errors[key][0];
|
||||
|
||||
// Handle different input structures
|
||||
if (input.type === 'checkbox') {
|
||||
input.closest('.space-y-4').appendChild(errorDiv);
|
||||
input.closest('.flex').parentNode.appendChild(errorDiv);
|
||||
} else {
|
||||
input.closest('.md\\:col-span-9').appendChild(errorDiv);
|
||||
input.parentNode.appendChild(errorDiv);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -12,133 +12,249 @@
|
||||
|
||||
<section class="wrapper bg-white py-12 lg:py-20">
|
||||
<div class="container px-4">
|
||||
<div class="text-center mb-12">
|
||||
<h2 class="text-xs uppercase font-bold tracking-widest text-[#e31e24] mb-2">{{ __('career.remote_work_title', ['default' => 'Süreç Nasıl İşliyor?']) }}</h2>
|
||||
<h3 class="text-3xl md:text-4xl font-extrabold text-slate-900">{{ __('career.remote_work_title', ['default' => 'Tamamen Uzaktan Staj Deneyimi']) }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col lg:flex-row items-center gap-12 mb-20 max-w-6xl mx-auto">
|
||||
<div class="w-full lg:w-3/5">
|
||||
<div class="bg-white p-4 md:p-8 rounded-3xl shadow-2xl border border-slate-100 overflow-hidden flex justify-center">
|
||||
<pre class="mermaid">
|
||||
graph TD
|
||||
A[İnternet Üzerinden Başvuru] --> B{Uzaktan Çalışma Koşulları}
|
||||
B -- Uygun --> C[CV ve Evrakların İletilmesi]
|
||||
B -- Uygun Değil --> D[Süreç Sonlandırılır]
|
||||
C --> E[Ön Değerlendirme]
|
||||
E --> F[Teknik Görüşme]
|
||||
F --> G[Projelere Dahil Edilme]
|
||||
|
||||
style A fill:#f8fafc,stroke:#cbd5e1,stroke-width:2px
|
||||
style G fill:#e31e24,stroke:#fff,stroke-width:2px,color:#fff
|
||||
style B fill:#fff1f2,stroke:#fecdd3
|
||||
</pre>
|
||||
<!-- Wizard Progress Tracker -->
|
||||
<div class="max-w-md mx-auto mb-16">
|
||||
<div class="relative flex items-center justify-between">
|
||||
<!-- Progress Line -->
|
||||
<div class="absolute left-0 top-1/2 -translate-y-1/2 w-full h-1 bg-slate-100 -z-10 rounded-full">
|
||||
<div id="wizard-progress-bar" class="h-full bg-[#e31e24] rounded-full transition-all duration-500 w-[0%]"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-full lg:w-2/5 space-y-8">
|
||||
<h4 class="text-2xl font-bold text-slate-900">{{ __('career.application_conditions_title', ['default' => 'Başvuru Şartları ve Çalışma Modeli']) }}</h4>
|
||||
<div class="space-y-6">
|
||||
<div class="flex items-start gap-4">
|
||||
<div class="flex-shrink-0 w-8 h-8 rounded-full bg-red-50 flex items-center justify-center text-[#e31e24]">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="font-bold text-slate-800 block text-sm">{{ __('career.daily_standup', ['default' => 'Günlük Standup:']) }}</span>
|
||||
<p class="text-sm text-slate-500">{{ __('career.daily_standup_desc', ['default' => 'Her gün düzenlenen kısa toplantılarla ekip içi iletişim ve ilerleme takibi sağlanır.']) }}</p>
|
||||
</div>
|
||||
|
||||
<!-- Step 1 Dot -->
|
||||
<div class="flex flex-col items-center">
|
||||
<div id="step-dot-1" class="w-12 h-12 rounded-full bg-[#e31e24] text-white flex items-center justify-center font-extrabold shadow-lg shadow-red-500/20 transition-all duration-500 ring-4 ring-red-100">
|
||||
<i class="uil uil-info-circle text-xl"></i>
|
||||
</div>
|
||||
<div class="flex items-start gap-4">
|
||||
<div class="flex-shrink-0 w-8 h-8 rounded-full bg-red-50 flex items-center justify-center text-[#e31e24]">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="font-bold text-slate-800 block text-sm">{{ __('career.flexible_projects', ['default' => 'Esnek Projeler:']) }}</span>
|
||||
<p class="text-sm text-slate-500">{{ __('career.flexible_projects_desc', ['default' => 'Projelerimizde esneklik esastır. Yeteneklerinize uygun gerçek projelerde görev alırsınız.']) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-start gap-4">
|
||||
<div class="flex-shrink-0 w-8 h-8 rounded-full bg-red-50 flex items-center justify-center text-[#e31e24]">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="font-bold text-slate-800 block text-sm">{{ __('career.focus_on_development', ['default' => 'Gelişim Odaklılık:']) }}</span>
|
||||
<p class="text-sm text-slate-500">{{ __('career.condition_not_only_for_internship', ['default' => 'Yalnızca staj yapmak için yapmak isteyen kişiler alınmamaktadır.']) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-start gap-4">
|
||||
<div class="flex-shrink-0 w-8 h-8 rounded-full bg-red-50 flex items-center justify-center text-[#e31e24]">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="font-bold text-slate-800 block text-sm">{{ __('career.intent_letter', ['default' => 'Niyet Mektubu:']) }}</span>
|
||||
<p class="text-sm text-slate-500">{{ __('career.condition_intent_letter', ['default' => 'Mesaj bölümünde nasıl bir katkı sağlayacağınızın niyet mektubu iletilmelidir.']) }}</p>
|
||||
</div>
|
||||
<span id="step-label-1" class="text-xs md:text-sm font-bold text-slate-800 mt-3 transition-all duration-300">{{ __('career.intern_step_1_title') }}</span>
|
||||
</div>
|
||||
|
||||
<!-- Step 2 Dot -->
|
||||
<div class="flex flex-col items-center">
|
||||
<div id="step-dot-2" class="w-12 h-12 rounded-full bg-slate-100 text-slate-400 flex items-center justify-center font-extrabold transition-all duration-500 ring-4 ring-transparent">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<span id="step-label-2" class="text-xs md:text-sm font-medium text-slate-400 mt-3 transition-all duration-300">{{ __('career.intern_step_2_title') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="max-w-4xl mx-auto">
|
||||
<div class="bg-white rounded-[2rem] shadow-2xl overflow-hidden border border-slate-100">
|
||||
<div class="p-8 md:p-12">
|
||||
<div class="mb-10">
|
||||
<h2 class="text-2xl font-bold text-slate-900 mb-2">{{ __('career.internship_title') }}</h2>
|
||||
<div class="w-12 h-1 bg-[#e31e24] rounded-full"></div>
|
||||
<!-- Main Form Container -->
|
||||
<form action="{{ route('career.store') }}" method="POST" enctype="multipart/form-data" id="career-application-form">
|
||||
@csrf
|
||||
<input type="hidden" name="type" value="internship">
|
||||
|
||||
<!-- ================= STEP 1: TERMS & CONDITIONS ================= -->
|
||||
<div id="step-content-1" class="wizard-step transition-all duration-500 opacity-100 block">
|
||||
<div class="max-w-5xl mx-auto mb-12">
|
||||
<!-- Welcome Message -->
|
||||
<div class="bg-blue-50 border-l-4 border-blue-500 p-8 rounded-r-2xl shadow-sm mb-12">
|
||||
<h4 class="text-xl font-bold text-blue-900 mb-4">{{ __('career.dear_intern') }}</h4>
|
||||
<div class="text-blue-800 space-y-4 leading-relaxed text-sm md:text-base">
|
||||
<p>{!! __('career.intern_welcome_text_1') !!}</p>
|
||||
<p>{!! __('career.intern_welcome_text_2') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form action="{{ route('career.store') }}" method="POST" enctype="multipart/form-data" class="space-y-6" id="career-application-form">
|
||||
@csrf
|
||||
<input type="hidden" name="type" value="internship">
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="name" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.name', ['default' => 'Ad Soyad']) }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="text" name="name" id="name" class="w-full px-5 py-3 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300" placeholder="Örn: Ahmet Yılmaz" value="{{ old('name') }}" required>
|
||||
<div class="text-center mb-12">
|
||||
<h2 class="text-xs uppercase font-bold tracking-widest text-[#e31e24] mb-2">{{ __('career.remote_work_title', ['default' => 'Süreç Nasıl İşliyor?']) }}</h2>
|
||||
<h3 class="text-3xl md:text-4xl font-extrabold text-slate-900">{{ __('career.remote_work_title', ['default' => 'Tamamen Uzaktan Staj Deneyimi']) }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col lg:flex-row gap-12 items-start mb-12">
|
||||
<!-- Mermaid Flowchart Canvas -->
|
||||
<div class="w-full lg:w-3/5">
|
||||
<div id="mermaid-card" class="relative bg-white p-6 md:p-8 rounded-3xl shadow-xl border border-slate-100 overflow-x-auto flex flex-col items-center">
|
||||
<!-- Fullscreen Toggle Button -->
|
||||
<button type="button" onclick="toggleFullscreen()" class="absolute top-4 right-4 p-2.5 rounded-xl bg-slate-50 hover:bg-slate-100 border border-slate-100 hover:border-slate-200 text-slate-500 hover:text-slate-700 transition-all duration-200 shadow-sm flex items-center justify-center z-10" title="Tam Ekran / Fullscreen">
|
||||
<i id="fullscreen-icon" class="uil uil-expand-arrows-alt text-lg"></i>
|
||||
</button>
|
||||
<span class="text-xs font-bold text-slate-400 uppercase tracking-widest mb-4"><i class="uil uil-presentation-play mr-1"></i> {{ __('career.intern_flow_diagram') }}</span>
|
||||
|
||||
<div class="mermaid w-full flex justify-center" style="min-height: 400px;">
|
||||
graph TD
|
||||
%% Styles
|
||||
classDef startNode fill:#3b82f6,stroke:#1d4ed8,stroke-width:2px,color:#fff,font-weight:bold,rx:10px,ry:10px;
|
||||
classDef decisionNode fill:#eab308,stroke:#ca8a04,stroke-width:2px,color:#1e293b,font-weight:bold;
|
||||
classDef processNode fill:#10b981,stroke:#047857,stroke-width:2px,color:#fff,font-weight:bold,rx:5px,ry:5px;
|
||||
classDef rejectNode fill:#ef4444,stroke:#b91c1c,stroke-width:2px,color:#fff,font-weight:bold,rx:5px,ry:5px;
|
||||
classDef actionNode fill:#8b5cf6,stroke:#6d28d9,stroke-width:2px,color:#fff,font-weight:bold,rx:5px,ry:5px;
|
||||
|
||||
Start["{{ __('career.intern_mermaid_start') }}"]:::startNode
|
||||
Dec1{"{{ __('career.intern_mermaid_dec1') }}"}:::decisionNode
|
||||
Red1["{{ __('career.intern_mermaid_red1') }}"]:::rejectNode
|
||||
DocUpload["{{ __('career.intern_mermaid_doc_upload') }}"]:::processNode
|
||||
DocSign["{{ __('career.intern_mermaid_doc_sign') }}"]:::processNode
|
||||
GitAccess["{{ __('career.intern_mermaid_git') }}"]:::processNode
|
||||
SampleTask["{{ __('career.intern_mermaid_sample') }}"]:::processNode
|
||||
Dec2{"{{ __('career.intern_mermaid_dec2') }}"}:::decisionNode
|
||||
Real["{{ __('career.intern_mermaid_real') }}"]:::processNode
|
||||
Dec3{"{{ __('career.intern_mermaid_dec3') }}"}:::decisionNode
|
||||
WaitTask["{{ __('career.intern_mermaid_wait') }}"]:::actionNode
|
||||
Assign["{{ __('career.intern_mermaid_assign') }}"]:::processNode
|
||||
WorkStart["{{ __('career.intern_mermaid_work') }}"]:::processNode
|
||||
Review["{{ __('career.intern_mermaid_review') }}"]:::processNode
|
||||
Dec4{"{{ __('career.intern_mermaid_dec4') }}"}:::decisionNode
|
||||
Feedback["{{ __('career.intern_mermaid_feedback') }}"]:::actionNode
|
||||
Success["{{ __('career.intern_mermaid_success') }}"]:::processNode
|
||||
Graduation["{{ __('career.intern_mermaid_graduation') }}"]:::startNode
|
||||
|
||||
Start --> Dec1
|
||||
Dec1 -- "Hayır" --> Red1
|
||||
Dec1 -- "Evet" --> DocUpload
|
||||
DocUpload --> DocSign
|
||||
DocSign --> GitAccess
|
||||
GitAccess --> Dec2
|
||||
Dec2 -- "Hayır" --> SampleTask
|
||||
SampleTask --> Dec2
|
||||
Dec2 -- "Evet" --> Real
|
||||
Real --> Dec3
|
||||
Dec3 -- "Hayır" --> WaitTask
|
||||
Dec3 -- "Evet" --> Assign
|
||||
Assign --> WorkStart
|
||||
WorkStart --> Review
|
||||
Review --> Dec4
|
||||
Dec4 -- "Hayır" --> Feedback
|
||||
Feedback --> WorkStart
|
||||
Dec4 -- "Evet" --> Success
|
||||
Success --> Graduation
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="email" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.email', ['default' => 'E-posta']) }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="email" name="email" id="email" class="w-full px-5 py-3 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300" placeholder="Örn: ahmet@example.com" value="{{ old('email') }}" required>
|
||||
<!-- Conditions & Model Requirements -->
|
||||
<div class="w-full lg:w-2/5 space-y-8">
|
||||
<h4 class="text-2xl font-bold text-slate-900">{{ __('career.application_conditions_title', ['default' => 'Başvuru Şartları ve Çalışma Modeli']) }}</h4>
|
||||
<div class="space-y-6">
|
||||
<div class="flex items-start gap-4">
|
||||
<div class="flex-shrink-0 w-8 h-8 rounded-full bg-red-50 flex items-center justify-center text-[#e31e24]">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="font-bold text-slate-800 block text-sm">{{ __('career.daily_standup', ['default' => 'Günlük Standup:']) }}</span>
|
||||
<p class="text-sm text-slate-500">{{ __('career.daily_standup_desc', ['default' => 'Her gün düzenlenen kısa toplantılarla ekip içi iletişim ve ilerleme takibi sağlanır.']) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-start gap-4">
|
||||
<div class="flex-shrink-0 w-8 h-8 rounded-full bg-red-50 flex items-center justify-center text-[#e31e24]">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="font-bold text-slate-800 block text-sm">{{ __('career.flexible_projects', ['default' => 'Esnek Projeler:']) }}</span>
|
||||
<p class="text-sm text-slate-500">{{ __('career.flexible_projects_desc', ['default' => 'Projelerimizde esneklik esastır. Yeteneklerinize uygun gerçek projelerde görev alırsınız.']) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-start gap-4">
|
||||
<div class="flex-shrink-0 w-8 h-8 rounded-full bg-red-50 flex items-center justify-center text-[#e31e24]">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="font-bold text-slate-800 block text-sm">{{ __('career.focus_on_development', ['default' => 'Gelişim Odaklılık:']) }}</span>
|
||||
<p class="text-sm text-slate-500">{{ __('career.condition_not_only_for_internship', ['default' => 'Yalnızca staj yapmak için yapmak isteyen kişiler alınmamaktadır.']) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-start gap-4">
|
||||
<div class="flex-shrink-0 w-8 h-8 rounded-full bg-red-50 flex items-center justify-center text-[#e31e24]">
|
||||
<i class="uil uil-check-circle text-xl"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="font-bold text-slate-800 block text-sm">{{ __('career.intent_letter', ['default' => 'Niyet Mektubu:']) }}</span>
|
||||
<p class="text-sm text-slate-500">{{ __('career.condition_intent_letter', ['default' => 'Mesaj bölümünde nasıl bir katkı sağlayacağınızın niyet mektubu iletilmelidir.']) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="phone" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.phone', ['default' => 'Telefon']) }}</label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="text" name="phone" id="phone" class="w-full px-5 py-3 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300" placeholder="Örn: 05XX XXX XX XX" value="{{ old('phone') }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="cv" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.cv', ['default' => 'Özgeçmiş (CV)']) }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="file" name="cv" id="cv" class="w-full px-5 py-2.5 rounded-xl border border-slate-200 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-xs file:font-semibold file:bg-red-50 file:text-[#e31e24] hover:file:bg-red-100 transition-all" required>
|
||||
<p class="mt-2 text-xs text-slate-400">PDF, DOC, DOCX (Maks. 5MB)</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-start">
|
||||
<label for="message" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right pt-3">{{ __('career.message', ['default' => 'Mesajınız']) }}</label>
|
||||
<div class="md:col-span-9">
|
||||
<textarea name="message" id="message" class="w-full px-5 py-4 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300 min-h-[150px]" placeholder="Staj beklentileriniz ve çalışma alanlarınız hakkında bilgi verebilirsiniz...">{{ old('message') }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6">
|
||||
<div class="md:col-start-4 md:col-span-9">
|
||||
<button type="submit" id="submit-btn" class="w-full md:w-auto px-10 py-4 bg-[#e31e24] hover:bg-[#c4191f] text-white font-bold rounded-full transition-all shadow-lg shadow-red-500/30 flex items-center justify-center gap-3">
|
||||
<span class="btn-text">{{ __('career.submit', ['default' => 'Başvuruyu Gönder']) }}</span>
|
||||
<span class="spinner-border spinner-border-sm hidden animate-spin w-4 h-4 border-2 border-white border-t-transparent rounded-full" role="status"></span>
|
||||
<i class="uil uil-arrow-right text-xl btn-icon"></i>
|
||||
<!-- Terms Acceptance & Next Trigger -->
|
||||
<div class="bg-slate-50 p-6 rounded-2xl border border-slate-100 mt-8 space-y-4">
|
||||
<div class="flex items-start gap-3">
|
||||
<input type="checkbox" id="terms-accept-checkbox" class="w-5 h-5 rounded border-slate-300 text-[#e31e24] focus:ring-[#e31e24] mt-1 cursor-pointer">
|
||||
<label for="terms-accept-checkbox" class="text-sm text-slate-700 font-semibold cursor-pointer">
|
||||
{{ __('career.intern_terms_accept_label') }} <span class="text-[#e31e24]">*</span>
|
||||
</label>
|
||||
</div>
|
||||
<button type="button" onclick="nextStep(2)" id="step-1-next-btn" class="w-full py-4 bg-slate-300 text-slate-500 font-bold rounded-xl transition-all flex items-center justify-center gap-2 cursor-not-allowed" disabled>
|
||||
<span>{{ __('career.accept_intern_terms_btn') }}</span>
|
||||
<i class="uil uil-arrow-right text-lg"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= STEP 2: COMPLETE APPLICATION ================= -->
|
||||
<div id="step-content-2" class="wizard-step transition-all duration-500 opacity-0 hidden">
|
||||
<div class="max-w-4xl mx-auto">
|
||||
<div class="bg-white rounded-[2rem] shadow-2xl overflow-hidden border border-slate-100">
|
||||
<div class="p-8 md:p-12">
|
||||
<div class="mb-10 text-center">
|
||||
<h2 class="text-3xl font-bold text-slate-900 mb-2">{{ __('career.form_title') }}</h2>
|
||||
<p class="text-slate-500">{{ __('career.form_subtitle') }}</p>
|
||||
<div class="w-12 h-1 bg-[#e31e24] rounded-full mx-auto mt-4"></div>
|
||||
</div>
|
||||
|
||||
<div class="space-y-6">
|
||||
<!-- Name -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="name" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.name') }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="text" name="name" id="name" class="w-full px-5 py-3 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300" placeholder="{{ __('career.name_placeholder') }}" value="{{ old('name') }}" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Email -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="email" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.email') }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="email" name="email" id="email" class="w-full px-5 py-3 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300" placeholder="{{ __('career.email_placeholder') }}" value="{{ old('email') }}" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Phone -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="phone" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.phone') }}</label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="text" name="phone" id="phone" class="w-full px-5 py-3 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300" placeholder="{{ __('career.phone_placeholder') }}" value="{{ old('phone') }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- CV Upload -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-center">
|
||||
<label for="cv" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right">{{ __('career.cv') }} <span class="text-[#e31e24]">*</span></label>
|
||||
<div class="md:col-span-9">
|
||||
<input type="file" name="cv" id="cv" class="w-full px-5 py-2.5 rounded-xl border border-slate-200 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-xs file:font-semibold file:bg-red-50 file:text-[#e31e24] hover:file:bg-red-100 transition-all" required>
|
||||
<p class="mt-2 text-xs text-slate-400">{{ __('career.cv_description') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Message / Intent Letter -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 items-start">
|
||||
<label for="message" class="md:col-span-3 text-sm font-bold text-slate-700 md:text-right pt-3">{{ __('career.message') }}</label>
|
||||
<div class="md:col-span-9">
|
||||
<textarea name="message" id="message" class="w-full px-5 py-4 rounded-xl border border-slate-200 focus:ring-4 focus:ring-red-500/10 focus:border-[#e31e24] outline-none transition-all placeholder-slate-300 min-h-[150px]" placeholder="Staj beklentileriniz ve çalışma alanlarınız hakkında bilgi verebilirsiniz...">{{ old('message') }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Step 2 Navigation -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 pt-6 border-t border-slate-100">
|
||||
<div class="md:col-start-4 md:col-span-9 flex items-center justify-between gap-4">
|
||||
<button type="button" onclick="prevStep(1)" class="px-6 py-4 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold rounded-xl transition-all flex items-center gap-2">
|
||||
<i class="uil uil-arrow-left text-lg"></i>
|
||||
<span>{{ __('career.go_back') }}</span>
|
||||
</button>
|
||||
|
||||
<button type="submit" id="submit-btn" class="flex-1 md:flex-none px-10 py-4 bg-[#e31e24] hover:bg-[#c4191f] text-white font-bold rounded-full transition-all shadow-lg shadow-red-500/30 flex items-center justify-center gap-3">
|
||||
<span class="btn-text">{{ __('career.submit') }}</span>
|
||||
<span class="spinner-border spinner-border-sm hidden animate-spin w-4 h-4 border-2 border-white border-t-transparent rounded-full" role="status"></span>
|
||||
<i class="uil uil-arrow-right text-xl btn-icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -200,6 +316,16 @@
|
||||
outline: none;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
-webkit-appearance: checkbox !important;
|
||||
appearance: checkbox !important;
|
||||
width: 1.25rem !important;
|
||||
height: 1.25rem !important;
|
||||
accent-color: var(--citrus-red);
|
||||
cursor: pointer;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.bg-soft-primary {
|
||||
background: linear-gradient(135deg, #f0f7ff 0%, #e8f1ff 100%) !important;
|
||||
}
|
||||
@@ -238,22 +364,210 @@
|
||||
padding-left: 2rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Mermaid diagram readability and aesthetics */
|
||||
.mermaid .nodeLabel,
|
||||
.mermaid .node text,
|
||||
.mermaid text,
|
||||
.mermaid .node .label {
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 0, 0, 0.2) !important;
|
||||
padding: 2px 8px !important;
|
||||
}
|
||||
|
||||
.mermaid .node.decisionNode .nodeLabel,
|
||||
.mermaid .node.decisionNode text,
|
||||
.mermaid .node.decisionNode .label {
|
||||
text-shadow: none !important;
|
||||
color: #1e293b !important;
|
||||
}
|
||||
|
||||
.mermaid svg {
|
||||
filter: drop-shadow(0px 10px 20px rgba(15, 23, 42, 0.05));
|
||||
}
|
||||
|
||||
/* Fullscreen styles for card container */
|
||||
#mermaid-card:fullscreen,
|
||||
#mermaid-card:-webkit-full-screen,
|
||||
#mermaid-card:-ms-fullscreen {
|
||||
background-color: #ffffff !important;
|
||||
padding: 3rem 2rem !important;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
overflow: auto !important;
|
||||
border-radius: 0px !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@push('scripts')
|
||||
<script type="module">
|
||||
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
|
||||
mermaid.initialize({
|
||||
startOnLoad: true,
|
||||
theme: 'default',
|
||||
<script src="https://cdn.jsdelivr.net/npm/mermaid@10.2.4/dist/mermaid.min.js"></script>
|
||||
<script>
|
||||
// Initialize Mermaid
|
||||
mermaid.initialize({
|
||||
startOnLoad: false,
|
||||
theme: 'neutral',
|
||||
securityLevel: 'loose',
|
||||
flowchart: {
|
||||
useMaxWidth: true,
|
||||
htmlLabels: true,
|
||||
curve: 'basis'
|
||||
useMaxWidth: true,
|
||||
htmlLabels: true
|
||||
}
|
||||
});
|
||||
|
||||
// Run mermaid after all fonts are fully loaded to ensure boxes match the text dimensions perfectly
|
||||
if (document.fonts) {
|
||||
document.fonts.ready.then(function() {
|
||||
mermaid.run({
|
||||
nodes: document.querySelectorAll('.mermaid')
|
||||
});
|
||||
});
|
||||
} else {
|
||||
window.addEventListener('load', function() {
|
||||
mermaid.run({
|
||||
nodes: document.querySelectorAll('.mermaid')
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// Fullscreen toggle logic for Mermaid card
|
||||
function toggleFullscreen() {
|
||||
const card = document.getElementById('mermaid-card');
|
||||
const icon = document.getElementById('fullscreen-icon');
|
||||
|
||||
if (!document.fullscreenElement && !document.webkitFullscreenElement && !document.msFullscreenElement) {
|
||||
if (card.requestFullscreen) {
|
||||
card.requestFullscreen();
|
||||
} else if (card.webkitRequestFullscreen) { /* Safari */
|
||||
card.webkitRequestFullscreen();
|
||||
} else if (card.msRequestFullscreen) { /* IE11 */
|
||||
card.msRequestFullscreen();
|
||||
}
|
||||
} else {
|
||||
if (document.exitFullscreen) {
|
||||
document.exitFullscreen();
|
||||
} else if (document.webkitExitFullscreen) {
|
||||
document.webkitExitFullscreen();
|
||||
} else if (document.msExitFullscreen) {
|
||||
document.msExitFullscreen();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Handle icon sync on fullscreen change
|
||||
function handleFullscreenChange() {
|
||||
const icon = document.getElementById('fullscreen-icon');
|
||||
if (document.fullscreenElement || document.webkitFullscreenElement || document.msFullscreenElement) {
|
||||
icon.className = "uil uil-shrink text-lg";
|
||||
} else {
|
||||
icon.className = "uil uil-expand-arrows-alt text-lg";
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener('fullscreenchange', handleFullscreenChange);
|
||||
document.addEventListener('webkitfullscreenchange', handleFullscreenChange);
|
||||
document.addEventListener('msfullscreenchange', handleFullscreenChange);
|
||||
|
||||
// Step variables
|
||||
let currentStep = 1;
|
||||
|
||||
// Track Terms checkbox to enable Step 1 Next button
|
||||
document.getElementById('terms-accept-checkbox').addEventListener('change', function(e) {
|
||||
const nextBtn = document.getElementById('step-1-next-btn');
|
||||
if (e.target.checked) {
|
||||
nextBtn.disabled = false;
|
||||
nextBtn.classList.remove('bg-slate-300', 'text-slate-500', 'cursor-not-allowed');
|
||||
nextBtn.classList.add('bg-[#e31e24]', 'text-white', 'hover:bg-[#c4191f]', 'shadow-lg', 'shadow-red-500/20');
|
||||
} else {
|
||||
nextBtn.disabled = true;
|
||||
nextBtn.classList.add('bg-slate-300', 'text-slate-500', 'cursor-not-allowed');
|
||||
nextBtn.classList.remove('bg-[#e31e24]', 'text-white', 'hover:bg-[#c4191f]', 'shadow-lg', 'shadow-red-500/20');
|
||||
}
|
||||
});
|
||||
|
||||
function updateProgressBar() {
|
||||
const progressPercent = ((currentStep - 1) / 1) * 100;
|
||||
document.getElementById('wizard-progress-bar').style.width = `${progressPercent}%`;
|
||||
|
||||
// Reset indicator classes
|
||||
for (let i = 1; i <= 2; i++) {
|
||||
const dot = document.getElementById(`step-dot-${i}`);
|
||||
const label = document.getElementById(`step-label-${i}`);
|
||||
|
||||
if (i < currentStep) {
|
||||
// Completed Step
|
||||
dot.className = "w-12 h-12 rounded-full bg-emerald-500 text-white flex items-center justify-center font-extrabold shadow-lg shadow-emerald-500/20 ring-4 ring-emerald-100 transition-all duration-500";
|
||||
dot.innerHTML = `<i class="uil uil-check text-xl"></i>`;
|
||||
label.className = "text-xs md:text-sm font-bold text-slate-800 mt-3";
|
||||
} else if (i === currentStep) {
|
||||
// Active Step
|
||||
dot.className = "w-12 h-12 rounded-full bg-[#e31e24] text-white flex items-center justify-center font-extrabold shadow-lg shadow-red-500/20 ring-4 ring-red-100 transition-all duration-500";
|
||||
if (i === 1) dot.innerHTML = `<i class="uil uil-info-circle text-xl"></i>`;
|
||||
if (i === 2) dot.innerHTML = `<i class="uil uil-check-circle text-xl"></i>`;
|
||||
label.className = "text-xs md:text-sm font-bold text-slate-800 mt-3";
|
||||
} else {
|
||||
// Pending Step
|
||||
dot.className = "w-12 h-12 rounded-full bg-slate-100 text-slate-400 flex items-center justify-center font-extrabold ring-4 ring-transparent transition-all duration-500";
|
||||
if (i === 2) dot.innerHTML = `<i class="uil uil-check-circle text-xl"></i>`;
|
||||
label.className = "text-xs md:text-sm font-medium text-slate-400 mt-3";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function nextStep(step) {
|
||||
if (step === 2 && !document.getElementById('terms-accept-checkbox').checked) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Hide current step content with nice fade animation
|
||||
const currentStepEl = document.getElementById(`step-content-${currentStep}`);
|
||||
currentStepEl.classList.remove('opacity-100');
|
||||
currentStepEl.classList.add('opacity-0');
|
||||
|
||||
setTimeout(() => {
|
||||
currentStepEl.classList.add('hidden');
|
||||
|
||||
// Show next step content
|
||||
const nextStepEl = document.getElementById(`step-content-${step}`);
|
||||
nextStepEl.classList.remove('hidden');
|
||||
|
||||
// Force repaint to trigger animation
|
||||
nextStepEl.offsetHeight;
|
||||
|
||||
nextStepEl.classList.remove('opacity-0');
|
||||
nextStepEl.classList.add('opacity-100');
|
||||
|
||||
currentStep = step;
|
||||
updateProgressBar();
|
||||
window.scrollTo({ top: document.querySelector('.wrapper').offsetTop - 50, behavior: 'smooth' });
|
||||
}, 200);
|
||||
}
|
||||
|
||||
function prevStep(step) {
|
||||
const currentStepEl = document.getElementById(`step-content-${currentStep}`);
|
||||
currentStepEl.classList.remove('opacity-100');
|
||||
currentStepEl.classList.add('opacity-0');
|
||||
|
||||
setTimeout(() => {
|
||||
currentStepEl.classList.add('hidden');
|
||||
|
||||
const prevStepEl = document.getElementById(`step-content-${step}`);
|
||||
prevStepEl.classList.remove('hidden');
|
||||
|
||||
prevStepEl.offsetHeight;
|
||||
|
||||
prevStepEl.classList.remove('opacity-0');
|
||||
prevStepEl.classList.add('opacity-100');
|
||||
|
||||
currentStep = step;
|
||||
updateProgressBar();
|
||||
window.scrollTo({ top: document.querySelector('.wrapper').offsetTop - 50, behavior: 'smooth' });
|
||||
}, 200);
|
||||
}
|
||||
</script>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
@@ -306,6 +620,10 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
confirmButtonText: '{{ __("career.ok") ?? "Tamam" }}'
|
||||
}).then(() => {
|
||||
form.reset();
|
||||
// Go back to step 1
|
||||
document.getElementById('terms-accept-checkbox').checked = false;
|
||||
document.getElementById('terms-accept-checkbox').dispatchEvent(new Event('change'));
|
||||
prevStep(1);
|
||||
});
|
||||
} else if (result.type === 'validation') {
|
||||
Object.keys(result.errors).forEach(key => {
|
||||
@@ -313,9 +631,14 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
if (input) {
|
||||
input.classList.add('is-invalid');
|
||||
const errorDiv = document.createElement('div');
|
||||
errorDiv.className = 'invalid-feedback text-start d-block';
|
||||
errorDiv.className = 'invalid-feedback text-start text-xs text-red-500 mt-1 block';
|
||||
errorDiv.textContent = result.errors[key][0];
|
||||
input.closest('.md\\:col-span-9')?.appendChild(errorDiv) || input.closest('.col-md-9')?.appendChild(errorDiv);
|
||||
|
||||
if (input.type === 'checkbox') {
|
||||
input.closest('.flex').parentNode.appendChild(errorDiv);
|
||||
} else {
|
||||
input.parentNode.appendChild(errorDiv);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,338 @@
|
||||
<!-- Gantt Chart Card -->
|
||||
<div class="bg-white rounded-3xl p-6 md:p-8 shadow-xl border border-slate-100/50 mb-8">
|
||||
<div class="flex items-center justify-between mb-6 pb-4 border-b border-slate-100">
|
||||
<h3 class="font-bold text-slate-800 text-lg flex items-center gap-2">
|
||||
<i class="uil uil-schedule text-blue-600 text-xl"></i>
|
||||
<span>Stajyer Gantt Şeması ve Takvimi</span>
|
||||
</h3>
|
||||
<span class="text-xs px-2.5 py-1 bg-blue-50 text-blue-600 rounded-full font-semibold">DevExtreme Görünümü</span>
|
||||
</div>
|
||||
|
||||
@if($ganttInterns->isEmpty())
|
||||
<div class="flex flex-col items-center justify-center p-8 text-center bg-slate-50 rounded-2xl border border-dashed border-slate-200">
|
||||
<i class="uil uil-calendar-slash text-4xl text-slate-300 mb-2"></i>
|
||||
<p class="text-sm font-medium text-slate-500">Tarihleri belirlenmiş onaylı stajyer bulunamadı.</p>
|
||||
</div>
|
||||
@else
|
||||
<!-- Gantt Container -->
|
||||
<div class="dx-viewport demo-container" style="height: 480px; overflow: hidden; border-radius: 16px; border: 1px solid rgba(0,0,0,0.05);">
|
||||
<div id="gantt" style="height: 100%; width: 100%;"></div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<!-- Dynamic Journal Modal -->
|
||||
<div id="journal-modal" class="fixed inset-0 z-[9999] hidden items-center justify-center bg-slate-900/60 backdrop-blur-sm transition-opacity duration-300">
|
||||
<div class="bg-white rounded-3xl shadow-2xl border border-slate-100 max-w-2xl w-full mx-4 overflow-hidden transform scale-95 opacity-0 transition-all duration-300 flex flex-col max-h-[90vh]">
|
||||
<!-- Modal Header -->
|
||||
<div class="px-6 py-4 bg-gradient-to-r from-blue-50 to-indigo-50/30 border-b border-slate-100 flex items-center justify-between">
|
||||
<div>
|
||||
<h4 id="modal-title" class="font-bold text-slate-800 text-lg">Staj Raporu Detayı</h4>
|
||||
<p id="modal-subtitle" class="text-xs text-slate-500 font-semibold mt-0.5"></p>
|
||||
</div>
|
||||
<button type="button" onclick="closeJournalModal()" class="text-slate-400 hover:text-slate-600 transition-colors p-1.5 rounded-full hover:bg-slate-100/80">
|
||||
<svg class="w-5 h-5" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path d="M6 18L18 6M6 6l12 12"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Modal Body -->
|
||||
<div class="p-6 overflow-y-auto flex-grow prose max-w-none text-slate-700 leading-relaxed text-sm no-scrollbar">
|
||||
<div id="modal-content" class="min-h-[100px] flex flex-col justify-center">
|
||||
<!-- Content gets loaded here -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal Footer -->
|
||||
<div class="px-6 py-4 bg-slate-50/50 border-t border-slate-100 flex items-center justify-between">
|
||||
<div id="modal-status-badge">
|
||||
<!-- Status badge -->
|
||||
</div>
|
||||
<div class="flex gap-3">
|
||||
<button type="button" onclick="closeJournalModal()" class="px-4 py-2 border border-slate-200 text-slate-600 hover:bg-slate-50 rounded-xl font-bold text-xs transition-colors">Kapat</button>
|
||||
<button type="button" id="modal-action-btn" onclick="handleModalAction()" class="hidden px-4 py-2 text-white bg-blue-600 hover:bg-blue-700 rounded-xl font-bold text-xs shadow-lg shadow-blue-500/20 transition-all"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('styles')
|
||||
<!-- DevExtreme Gantt CSS Dependencies -->
|
||||
<link rel="stylesheet" href="https://cdn3.devexpress.com/jslib/23.2.5/css/dx.fluent.blue.light.css">
|
||||
<link rel="stylesheet" href="https://cdn3.devexpress.com/jslib/23.2.5/css/dx-gantt.min.css">
|
||||
<style>
|
||||
.current-time-line {
|
||||
background-color: rgba(239, 68, 68, 0.4) !important;
|
||||
border-left: 2px dashed #ef4444 !important;
|
||||
width: 2px !important;
|
||||
}
|
||||
.rich-text-content p { margin-bottom: 8px; }
|
||||
.rich-text-content ul { list-style-type: disc !important; padding-left: 20px !important; margin-bottom: 8px !important; }
|
||||
.rich-text-content ol { list-style-type: decimal !important; padding-left: 20px !important; margin-bottom: 8px !important; }
|
||||
.rich-text-content li { margin-bottom: 4px !important; }
|
||||
.no-scrollbar::-webkit-scrollbar { display: none; }
|
||||
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
|
||||
</style>
|
||||
<script>
|
||||
tailwind = {
|
||||
config: {
|
||||
corePlugins: {
|
||||
preflight: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
@endpush
|
||||
|
||||
@push('scripts')
|
||||
<!-- Gantt Chart Javascript Dependencies & Initialization -->
|
||||
@if(!$ganttInterns->isEmpty())
|
||||
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
||||
<script src="https://cdn3.devexpress.com/jslib/23.2.5/js/dx-gantt.min.js"></script>
|
||||
<script src="https://cdn3.devexpress.com/jslib/23.2.5/js/dx.all.js"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
const ganttData = @json($ganttInterns);
|
||||
|
||||
const formattedData = ganttData.map(intern => ({
|
||||
id: intern.id,
|
||||
title: intern.title,
|
||||
start: new Date(intern.start),
|
||||
end: new Date(intern.end),
|
||||
progress: 0
|
||||
}));
|
||||
|
||||
let dayColumnsMap = {};
|
||||
|
||||
$('#gantt').dxGantt({
|
||||
tasks: {
|
||||
dataSource: formattedData,
|
||||
},
|
||||
editing: {
|
||||
enabled: false,
|
||||
},
|
||||
validation: {
|
||||
autoUpdateParentTasks: true,
|
||||
},
|
||||
toolbar: {
|
||||
items: [
|
||||
'collapseAll',
|
||||
'expandAll',
|
||||
'separator',
|
||||
'zoomIn',
|
||||
'zoomOut',
|
||||
],
|
||||
},
|
||||
columns: [{
|
||||
dataField: 'title',
|
||||
caption: 'Stajyer Adı',
|
||||
width: 200,
|
||||
}, {
|
||||
dataField: 'start',
|
||||
caption: 'Başlangıç Tarihi',
|
||||
dataType: 'date',
|
||||
format: 'dd.MM.yyyy',
|
||||
width: 110,
|
||||
}, {
|
||||
dataField: 'end',
|
||||
caption: 'Bitiş Tarihi',
|
||||
dataType: 'date',
|
||||
format: 'dd.MM.yyyy',
|
||||
width: 110,
|
||||
}],
|
||||
scaleType: 'days',
|
||||
taskListWidth: 420,
|
||||
stripLines: [{
|
||||
title: 'Bugün',
|
||||
start: new Date(),
|
||||
cssClass: 'current-time-line'
|
||||
}],
|
||||
onScaleCellPrepared: function(e) {
|
||||
if (e.scaleType === 'days') {
|
||||
const $el = $(e.scaleElement || e.element);
|
||||
const left = $el.position().left;
|
||||
const width = $el.outerWidth();
|
||||
const dateStr = e.startDate.toISOString().substring(0, 10);
|
||||
dayColumnsMap[dateStr] = {
|
||||
left: left,
|
||||
right: left + width,
|
||||
date: e.startDate,
|
||||
dateStr: dateStr
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Grid task area cell click listener
|
||||
$(document).on('click', '#gantt', function(e) {
|
||||
const $target = $(e.target);
|
||||
if ($target.closest('.dx-gantt-task-area').length > 0 || $target.closest('.dx-gantt-ts-area').length > 0) {
|
||||
const ganttInstance = $('#gantt').dxGantt('instance');
|
||||
const selectedKey = ganttInstance.option("selectedRowKey");
|
||||
if (!selectedKey) {
|
||||
alert("Lütfen önce sol taraftan stajyeri seçin, ardından tıklamak istediğiniz güne tıklayın.");
|
||||
return;
|
||||
}
|
||||
|
||||
const $taskArea = $('.dx-gantt-task-area').first();
|
||||
if (!$taskArea.length) return;
|
||||
|
||||
const scrollLeft = ganttInstance._ganttView._taskAreaContainer.scrollLeft;
|
||||
const clickX = e.pageX - $taskArea.offset().left;
|
||||
const totalX = scrollLeft + clickX;
|
||||
|
||||
const cols = Object.values(dayColumnsMap);
|
||||
const clickedCol = cols.find(col => totalX >= col.left && totalX <= col.right);
|
||||
if (clickedCol) {
|
||||
showDailyJournalPopup(selectedKey, clickedCol.dateStr);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
let activeEntryId = null;
|
||||
|
||||
function showDailyJournalPopup(internId, dateStr) {
|
||||
const modal = document.getElementById('journal-modal');
|
||||
const contentDiv = document.getElementById('modal-content');
|
||||
const titleH = document.getElementById('modal-title');
|
||||
const subtitleP = document.getElementById('modal-subtitle');
|
||||
const badgeDiv = document.getElementById('modal-status-badge');
|
||||
const actionBtn = document.getElementById('modal-action-btn');
|
||||
|
||||
modal.classList.remove('hidden');
|
||||
modal.classList.add('flex');
|
||||
setTimeout(() => {
|
||||
modal.firstElementChild.classList.remove('scale-95', 'opacity-0');
|
||||
modal.firstElementChild.classList.add('scale-100', 'opacity-100');
|
||||
}, 50);
|
||||
|
||||
contentDiv.innerHTML = `
|
||||
<div class="flex items-center justify-center p-8">
|
||||
<div class="animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600"></div>
|
||||
</div>
|
||||
`;
|
||||
titleH.textContent = "Yükleniyor...";
|
||||
subtitleP.textContent = "";
|
||||
badgeDiv.innerHTML = "";
|
||||
actionBtn.classList.add('hidden');
|
||||
activeEntryId = null;
|
||||
|
||||
fetch(`/stajyer/admin/journal-entry?intern_id=${internId}&date=${dateStr}`)
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
if (!data.success) {
|
||||
contentDiv.innerHTML = `<p class="text-slate-500 italic text-center p-8">${data.message}</p>`;
|
||||
titleH.textContent = "Bilgi";
|
||||
return;
|
||||
}
|
||||
|
||||
titleH.textContent = `${data.intern_name}`;
|
||||
subtitleP.textContent = `${data.day_number}. Gün Raporu — ${data.date_formatted}`;
|
||||
|
||||
if (!data.entry) {
|
||||
contentDiv.innerHTML = `
|
||||
<div class="flex flex-col items-center justify-center p-8 text-center bg-slate-50 rounded-2xl border border-dashed border-slate-200">
|
||||
<i class="uil uil-file-slash text-3xl text-slate-400 mb-2"></i>
|
||||
<p class="text-sm font-medium text-slate-500">Bu gün için henüz staj raporu yazılmamıştır.</p>
|
||||
</div>
|
||||
`;
|
||||
return;
|
||||
}
|
||||
|
||||
activeEntryId = data.entry.id;
|
||||
const entryContent = data.entry.content || '<p class="text-slate-400 italic">Boş içerik.</p>';
|
||||
|
||||
let contentHtml = '';
|
||||
if (data.entry.is_retroactive) {
|
||||
contentHtml += `
|
||||
<div class="mb-4 inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-rose-50 text-rose-700 text-[10px] font-extrabold uppercase border border-rose-100">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-rose-500 animate-pulse"></span>
|
||||
Geriye Dönük Kayıt
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
contentHtml += `<div class="rich-text-content prose max-w-none text-slate-700 leading-relaxed text-sm select-text">${entryContent}</div>`;
|
||||
contentDiv.innerHTML = contentHtml;
|
||||
|
||||
updateModalStatus(data.entry.supervisor_approved, data.entry.supervisor_name);
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
contentDiv.innerHTML = `<p class="text-red-500 text-center p-8 font-semibold">Veriler yüklenirken bir hata oluştu.</p>`;
|
||||
titleH.textContent = "Hata";
|
||||
});
|
||||
}
|
||||
|
||||
function updateModalStatus(approved, name) {
|
||||
const badgeDiv = document.getElementById('modal-status-badge');
|
||||
const actionBtn = document.getElementById('modal-action-btn');
|
||||
|
||||
actionBtn.classList.remove('hidden');
|
||||
if (approved) {
|
||||
badgeDiv.innerHTML = `
|
||||
<span class="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-emerald-50 text-emerald-700 text-xs font-bold border border-emerald-100">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><polyline points="20 6 9 17 4 12"/></svg>
|
||||
Sorumlu Onayladı ${name ? `(${name})` : ''}
|
||||
</span>
|
||||
`;
|
||||
actionBtn.textContent = "Onayı Kaldır";
|
||||
actionBtn.className = "px-4 py-2 text-white bg-rose-600 hover:bg-rose-700 rounded-xl font-bold text-xs shadow-lg shadow-rose-500/20 transition-all cursor-pointer";
|
||||
} else {
|
||||
badgeDiv.innerHTML = `
|
||||
<span class="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-slate-100 text-slate-600 text-xs font-bold border border-slate-200">
|
||||
Onay Bekliyor
|
||||
</span>
|
||||
`;
|
||||
actionBtn.textContent = "Raporu Onayla";
|
||||
actionBtn.className = "px-4 py-2 text-white bg-emerald-600 hover:bg-emerald-700 rounded-xl font-bold text-xs shadow-lg shadow-emerald-500/20 transition-all cursor-pointer";
|
||||
}
|
||||
}
|
||||
|
||||
function handleModalAction() {
|
||||
if (!activeEntryId) return;
|
||||
|
||||
const actionBtn = document.getElementById('modal-action-btn');
|
||||
actionBtn.disabled = true;
|
||||
actionBtn.style.opacity = "0.5";
|
||||
|
||||
fetch('/stajyer/admin/toggle-approval', {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"X-CSRF-TOKEN": "{{ csrf_token() }}"
|
||||
},
|
||||
body: JSON.stringify({
|
||||
entry_id: activeEntryId
|
||||
})
|
||||
})
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
if (data.success) {
|
||||
updateModalStatus(data.status, data.supervisor_name);
|
||||
} else {
|
||||
alert(data.message || "Onay güncellenemedi.");
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
alert("İşlem sırasında bir hata oluştu.");
|
||||
})
|
||||
.finally(() => {
|
||||
actionBtn.disabled = false;
|
||||
actionBtn.style.opacity = "1";
|
||||
});
|
||||
}
|
||||
|
||||
function closeJournalModal() {
|
||||
const modal = document.getElementById('journal-modal');
|
||||
modal.firstElementChild.classList.add('scale-95', 'opacity-0');
|
||||
modal.firstElementChild.classList.remove('scale-100', 'opacity-100');
|
||||
setTimeout(() => {
|
||||
modal.classList.add('hidden');
|
||||
modal.classList.remove('flex');
|
||||
}, 200);
|
||||
}
|
||||
</script>
|
||||
@endif
|
||||
@endpush
|
||||
@@ -0,0 +1,132 @@
|
||||
<!-- Stajyer Rehberi Modal -->
|
||||
<div id="guideModal" class="fixed inset-0 z-[9999] hidden flex items-center justify-center p-4">
|
||||
<!-- Backdrop -->
|
||||
<div class="absolute inset-0 bg-slate-900/60 backdrop-blur-md transition-opacity duration-300" onclick="toggleGuideModal(false)"></div>
|
||||
|
||||
<!-- Modal Content Card -->
|
||||
<div class="relative bg-white rounded-3xl w-full max-w-2xl max-h-[85vh] overflow-y-auto shadow-2xl border border-slate-100/50 transform scale-95 opacity-0 transition-all duration-300 flex flex-col" id="guideModalCard">
|
||||
|
||||
<!-- Modal Header -->
|
||||
<div class="sticky top-0 bg-white z-10 px-6 py-5 border-b border-slate-100 flex items-center justify-between">
|
||||
<div class="flex items-center gap-3">
|
||||
<div class="w-10 h-10 rounded-xl bg-red-50 text-[#e31e24] flex items-center justify-center text-xl">
|
||||
<i class="uil uil-book-open"></i>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="font-bold text-slate-800 text-lg text-white">Stajyer Çalışma & Git Workflow Rehberi</h3>
|
||||
<p class="text-xs text-slate-400 font-semibold mt-0.5">Başarılı bir staj süreci için uymanız gereken kurallar</p>
|
||||
</div>
|
||||
</div>
|
||||
<button onclick="toggleGuideModal(false)" class="w-8 h-8 rounded-lg bg-slate-50 hover:bg-slate-100 text-slate-400 hover:text-slate-600 flex items-center justify-center transition-colors">
|
||||
<i class="uil uil-times text-xl"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Modal Body -->
|
||||
<div class="p-6 md:p-8 space-y-6">
|
||||
|
||||
<!-- Bullet 1: GitHub Public Repo -->
|
||||
<div class="flex gap-4 items-start">
|
||||
<div class="w-8 h-8 rounded-full bg-blue-50 text-blue-600 flex items-center justify-center flex-shrink-0 mt-1 font-bold text-xs">
|
||||
1
|
||||
</div>
|
||||
<div>
|
||||
<h4 class="font-extrabold text-slate-800 text-sm">GitHub Public Repo Oluşturma</h4>
|
||||
<p class="text-xs text-slate-500 mt-1 leading-relaxed">
|
||||
Staj süresince geliştireceğiniz projeler için GitHub üzerinde <strong>public (herkese açık)</strong> bir repository oluşturmanız ve bu repo bağlantısını stajyer panelinize kaydetmeniz gerekmektedir.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bullet 2: Implementation Plan -->
|
||||
<div class="flex gap-4 items-start">
|
||||
<div class="w-8 h-8 rounded-full bg-blue-50 text-blue-600 flex items-center justify-center flex-shrink-0 mt-1 font-bold text-xs">
|
||||
2
|
||||
</div>
|
||||
<div>
|
||||
<h4 class="font-extrabold text-slate-800 text-sm">İlk Adım: Implementation Plan</h4>
|
||||
<p class="text-xs text-slate-500 mt-1 leading-relaxed">
|
||||
Deponuzu oluşturduktan sonra ilk commit olarak ana dizinde <code>implementation_plan.md</code> adında bir dosya hazırlamalısınız. Bu plan, projenizin mimarisini, hedeflerinizi ve yapacağınız işlerin genel haritasını içermelidir.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bullet 3: Daily Commits & Intern Journal -->
|
||||
<div class="flex gap-4 items-start">
|
||||
<div class="w-8 h-8 rounded-full bg-blue-50 text-blue-600 flex items-center justify-center flex-shrink-0 mt-1 font-bold text-xs">
|
||||
3
|
||||
</div>
|
||||
<div>
|
||||
<h4 class="font-extrabold text-slate-800 text-sm">Günlük Commit Zorunluluğu (Staj Defteri)</h4>
|
||||
<p class="text-xs text-slate-500 mt-1 leading-relaxed">
|
||||
Projeyi geliştirirken yaptığınız günlük commitler otomatik olarak staj günlüğünüze işlenir ve staj defterinizin içeriğini oluşturur. <strong>Eğer o gün commit gönderilmemişse, o gün çalışılmamış sayılacaktır.</strong>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bullet 4: Daily Standup Meetings -->
|
||||
<div class="flex gap-4 items-start">
|
||||
<div class="w-8 h-8 rounded-full bg-blue-50 text-blue-600 flex items-center justify-center flex-shrink-0 mt-1 font-bold text-xs">
|
||||
4
|
||||
</div>
|
||||
<div>
|
||||
<h4 class="font-extrabold text-slate-800 text-sm">Daily Standup Toplantıları</h4>
|
||||
<p class="text-xs text-slate-500 mt-1 leading-relaxed">
|
||||
Her iş günü düzenli olarak daily standup (günlük durum değerlendirme) toplantısı yapılacaktır. Toplantılarda dünün özeti, bugünün planları ve karşılaşılan engeller paylaşılır. <strong>Tüm stajyerlerin katılımı zorunludur.</strong>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bullet 5: Git Workflow & Commit Culture -->
|
||||
<div class="flex gap-4 items-start">
|
||||
<div class="w-8 h-8 rounded-full bg-blue-50 text-blue-600 flex items-center justify-center flex-shrink-0 mt-1 font-bold text-xs">
|
||||
5
|
||||
</div>
|
||||
<div>
|
||||
<h4 class="font-extrabold text-slate-800 text-sm">Git Workflow & Temiz Kod Kültürü</h4>
|
||||
<p class="text-xs text-slate-500 mt-1 leading-relaxed">
|
||||
Anlamlı commit mesajları yazmaya özen gösterin (örn. <code>feat: add login validation</code>). Kodlarınızı mantıksal parçalara ayırarak commit atın ve Git versiyon kontrol standartlarına uyun.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Modal Footer -->
|
||||
<div class="sticky bottom-0 bg-slate-50 z-10 px-6 py-4 border-t border-slate-100/50 flex items-center justify-end gap-3 rounded-b-3xl">
|
||||
<button onclick="toggleGuideModal(false)" class="px-5 py-2.5 bg-slate-850 hover:bg-slate-900 text-white font-extrabold rounded-xl text-xs transition-colors shadow-md shadow-slate-800/10">
|
||||
Anladım, Kapat
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function toggleGuideModal(show) {
|
||||
const modal = document.getElementById('guideModal');
|
||||
const card = document.getElementById('guideModalCard');
|
||||
if (!modal || !card) return;
|
||||
|
||||
if (show) {
|
||||
modal.classList.remove('hidden');
|
||||
setTimeout(() => {
|
||||
card.classList.remove('scale-95', 'opacity-0');
|
||||
card.classList.add('scale-100', 'opacity-100');
|
||||
}, 10);
|
||||
} else {
|
||||
card.classList.remove('scale-100', 'opacity-100');
|
||||
card.classList.add('scale-95', 'opacity-0');
|
||||
setTimeout(() => {
|
||||
modal.classList.add('hidden');
|
||||
}, 300);
|
||||
}
|
||||
}
|
||||
|
||||
// Handle ESC key
|
||||
document.addEventListener('keydown', function(e) {
|
||||
if (e.key === 'Escape') {
|
||||
toggleGuideModal(false);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,139 @@
|
||||
<!-- Interns Table & Management List -->
|
||||
<div class="bg-white rounded-3xl p-6 md:p-8 shadow-xl border border-slate-100/50">
|
||||
<h3 class="font-bold text-slate-800 text-lg mb-6 pb-4 border-b border-slate-100 flex items-center gap-2">
|
||||
<i class="uil uil-list-ul text-[#e31e24] text-xl"></i>
|
||||
<span>Stajyer Listesi ve Detaylı Takip</span>
|
||||
</h3>
|
||||
|
||||
<div class="overflow-x-auto">
|
||||
<table class="w-full text-left border-collapse">
|
||||
<thead>
|
||||
<tr class="border-b border-slate-100 text-xs font-extrabold uppercase tracking-wider text-slate-400">
|
||||
<th class="pb-4">Stajyer</th>
|
||||
<th class="pb-4">Staj Tarihleri</th>
|
||||
<th class="pb-4">Defter İlerlemesi</th>
|
||||
<th class="pb-4">Durum</th>
|
||||
<th class="pb-4">Belgeler</th>
|
||||
<th class="pb-4">GitHub & Repo</th>
|
||||
<th class="pb-4">Kayıt Tarihi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-slate-100">
|
||||
@foreach($allInterns as $intern)
|
||||
<tr class="hover:bg-slate-50/50 transition-colors">
|
||||
<!-- Name & Info -->
|
||||
<td class="py-4">
|
||||
<div class="font-bold text-slate-800 text-sm cursor-pointer hover:underline hover:text-blue-600 flex items-center gap-1.5" onclick="openInternJournalModal({{ $intern->id }})">
|
||||
<span>{{ $intern->name }}</span>
|
||||
<span class="inline-flex px-1.5 py-0.5 rounded-md bg-blue-50 text-blue-600 text-[9px] font-extrabold uppercase border border-blue-100 tracking-wider">Defteri İncele</span>
|
||||
</div>
|
||||
<div class="text-xs text-slate-400 mt-0.5 flex flex-col gap-0.5">
|
||||
<span><i class="uil uil-envelope mr-1"></i>{{ $intern->email }}</span>
|
||||
@if($intern->phone)
|
||||
<span><i class="uil uil-phone mr-1"></i>{{ $intern->phone }}</span>
|
||||
@endif
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<!-- Internship Dates -->
|
||||
<td class="py-4 text-xs font-semibold text-slate-600">
|
||||
@if($intern->internship_start_date && $intern->internship_end_date)
|
||||
<div class="flex flex-col">
|
||||
<span>{{ \Carbon\Carbon::parse($intern->internship_start_date)->format('d.m.Y') }} - {{ \Carbon\Carbon::parse($intern->internship_end_date)->format('d.m.Y') }}</span>
|
||||
<span class="text-blue-500 font-extrabold mt-0.5">{{ $intern->internship_total_days }} İş Günü</span>
|
||||
</div>
|
||||
@else
|
||||
<span class="text-slate-300 italic">Belirlenmemiş</span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<!-- Defter İlerlemesi -->
|
||||
<td class="py-4">
|
||||
@if($intern->internship_total_days)
|
||||
@php
|
||||
$filledDays = $intern->journalEntries->filter(function($entry) {
|
||||
return !empty(trim($entry->content));
|
||||
})->count();
|
||||
$progressPercent = ($filledDays / $intern->internship_total_days) * 100;
|
||||
if ($progressPercent > 100) $progressPercent = 100;
|
||||
@endphp
|
||||
<div class="flex flex-col gap-1 max-w-[130px]">
|
||||
<div class="flex justify-between text-[10px] font-extrabold">
|
||||
<span class="text-slate-400">Doldurulan</span>
|
||||
<span class="text-blue-600">{{ $filledDays }} / {{ $intern->internship_total_days }} Gün</span>
|
||||
</div>
|
||||
<div class="w-full bg-slate-100 h-2 rounded-full overflow-hidden border border-slate-200/40">
|
||||
<div class="bg-blue-600 h-full rounded-full transition-all duration-300" style="width: {{ $progressPercent }}%"></div>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<span class="text-slate-300 italic text-xs">Belirlenmemiş</span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<!-- Status -->
|
||||
<td class="py-4">
|
||||
<span class="inline-flex px-2.5 py-1 rounded-full text-[10px] font-extrabold uppercase tracking-wider
|
||||
@if($intern->status === 'accepted') bg-green-50 text-green-700 border border-green-200
|
||||
@elseif($intern->status === 'rejected') bg-red-50 text-red-700 border border-red-200
|
||||
@elseif($intern->status === 'reviewed') bg-blue-50 text-blue-700 border border-blue-200
|
||||
@elseif($intern->status === 'waiting_document') bg-amber-50 text-amber-700 border border-amber-200
|
||||
@else bg-slate-50 text-slate-500 border border-slate-200 @endif">
|
||||
@if($intern->status === 'accepted') Kabul Edildi
|
||||
@elseif($intern->status === 'rejected') Reddedildi
|
||||
@elseif($intern->status === 'reviewed') İncelendi
|
||||
@elseif($intern->status === 'waiting_document') Evrak Bekleniyor
|
||||
@else Beklemede @endif
|
||||
</span>
|
||||
</td>
|
||||
|
||||
<!-- Documents -->
|
||||
<td class="py-4 space-y-1">
|
||||
<div class="flex flex-wrap gap-1">
|
||||
@if($intern->cv_path)
|
||||
<a href="{{ Storage::disk('public')->url($intern->cv_path) }}" target="_blank" class="px-2 py-1 bg-slate-100 hover:bg-slate-200 text-slate-600 font-bold text-[10px] rounded-lg transition-all flex items-center gap-1">
|
||||
<i class="uil uil-file-alt"></i> CV
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if($intern->to_be_signed_internship_form_path)
|
||||
<a href="{{ Storage::disk('public')->url($intern->to_be_signed_internship_form_path) }}" target="_blank" class="px-2 py-1 bg-blue-50 hover:bg-blue-100 text-blue-600 font-bold text-[10px] rounded-lg transition-all flex items-center gap-1">
|
||||
<i class="uil uil-file-upload"></i> İmzalanacak Form
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if($intern->signed_internship_form_path)
|
||||
<a href="{{ Storage::disk('public')->url($intern->signed_internship_form_path) }}" target="_blank" class="px-2 py-1 bg-green-50 hover:bg-green-100 text-green-600 font-bold text-[10px] rounded-lg transition-all flex items-center gap-1">
|
||||
<i class="uil uil-file-check-alt"></i> İmzalı Form
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<!-- GitHub Repository -->
|
||||
<td class="py-4">
|
||||
@if($intern->github_repo)
|
||||
<div class="flex flex-col gap-1">
|
||||
<a href="{{ $intern->github_repo }}" target="_blank" class="text-blue-600 hover:text-blue-800 font-extrabold text-xs inline-flex items-center gap-1">
|
||||
<i class="uil uil-github"></i> Depoyu Aç
|
||||
</a>
|
||||
<!-- If they have repo, we can fetch their journal commits or trigger the controller download markdown -->
|
||||
<a href="{{ route('intern.download-journal') }}?intern_id={{ $intern->id }}" class="px-2 py-1 bg-emerald-50 hover:bg-emerald-100 text-emerald-600 font-bold text-[10px] rounded-lg transition-all flex items-center justify-center gap-1 w-max">
|
||||
<i class="uil uil-arrow-down-tray"></i> Günlüğü İndir (.md)
|
||||
</a>
|
||||
</div>
|
||||
@else
|
||||
<span class="text-slate-300 italic">Tanımlanmamış</span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<!-- Register Date -->
|
||||
<td class="py-4 text-xs font-semibold text-slate-400">
|
||||
{{ \Carbon\Carbon::parse($intern->created_at)->format('d.m.Y H:i') }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||