- Convert hardcoded strings and French translation keys to English keys across Blade templates, Vue components, TypeScript modules, models, and routes - Complete and synchronize lang/fr.json and lang/en.json translation dictionaries - Add timezone attribute in lang/fr/validation.php and lang/en/validation.php - Add missing English lang files for parity: crud.php, models.php, search.php, and vue.php
66 lines
2.4 KiB
PHP
66 lines
2.4 KiB
PHP
@extends('bo.layouts.layout')
|
|
|
|
@section('title', sprintf('%s - %s', Str::ucfirst(__('crud.actions.edit')), __('Employee sites')))
|
|
|
|
@section('breadcrumb', request()->route()->getName())
|
|
|
|
@section('content')
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<div class="row">
|
|
<div class="col">
|
|
<h1 class="h3">
|
|
{{ __('Employee sites') }} {{ Str::ucfirst(__('crud.actions.edit')) }}
|
|
</h1>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<form action="{{ route('bo.settings.update') }}" method="POST">
|
|
@csrf
|
|
@method('PUT')
|
|
|
|
<div class="mb-4">
|
|
<label class="form-label fw-bold" for="employee_sites">{{ __('Employee site codes (Arcadia)') }}</label>
|
|
<div class="form-text mb-3">
|
|
{{ __('Define one code per employee site (at least 2 uppercase letters, e.g. PA, NA, LY). These codes are used to query the Arcadia HR IS and synchronize employees in the employee store.') }}
|
|
</div>
|
|
|
|
<div
|
|
id="employee-sites-input"
|
|
data-json='@json(old('employee_sites', $setting->employeeSites))'
|
|
>
|
|
@foreach(old('employee_sites', $setting->employeeSites) as $site)
|
|
<div class="input-group mb-2">
|
|
<span class="input-group-text"><i class="fa-solid fa-location-dot"></i></span>
|
|
<input
|
|
type="text"
|
|
name="employee_sites[]"
|
|
class="form-control text-uppercase font-monospace"
|
|
value="{{ $site }}"
|
|
placeholder="ex: PA"
|
|
maxlength="20"
|
|
>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
|
|
@error('employee_sites')
|
|
<div class="invalid-feedback d-block mt-2">{{ $message }}</div>
|
|
@enderror
|
|
@error('employee_sites.*')
|
|
<div class="invalid-feedback d-block mt-1">{{ $message }}</div>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="text-center">
|
|
<button class="btn btn-primary" type="submit">
|
|
<i class="fa fa-floppy-disk"></i>
|
|
<span class="d-none d-sm-inline" data-bs-toggle="tooltip"
|
|
title="{{ Str::ucfirst(__('crud.actions.save')) }}">{{ Str::ucfirst(__('crud.actions.save')) }}</span>
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@endsection
|