68 lines
2.3 KiB
PHP
68 lines
2.3 KiB
PHP
@extends('layout.app')
|
|
|
|
|
|
|
|
@section('content')
|
|
<div id="planning" class="container container-xxl vueComponent">
|
|
<div class="row mb-3 sticky-top bg-white">
|
|
<div class="col-2">
|
|
<h1><a href="{{ route('schedule.index') }}">{{__('Planning') }}</a></h1>
|
|
</div>
|
|
<div class="col pt-2">
|
|
<h4 class="d-inline me-3">Légende</h4>
|
|
<div class="d-inline">
|
|
@foreach(CellType::toArray() as $type)
|
|
<span style="background-color: {{ $type->value }}; border: 1px solid black;">{{ $type->label }}</span>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<schedule-component
|
|
browse-date='@json($date)'
|
|
db-schedules='@json($arSchedules)'
|
|
db-activities='@json(ActivityType::toArray())'
|
|
db-models='@json(CellModel::toArray())'
|
|
db-users='@json($users)'
|
|
weeks='@json($weekCells)'
|
|
v-bind:show-weekends='false'></schedule-component>
|
|
</div>
|
|
@endsection
|
|
|
|
@push('scriptsConstants')
|
|
<script>
|
|
window._routes = {
|
|
"schedule.index": "{{ route('schedule.index') }}",
|
|
"ticket.show": "{{ route('ticket.show', 'TICKET') }}",
|
|
"projects.show": "{{ route('projects.show', 'PROJECT') }}",
|
|
"sites.show": "{{ route('sites.show', 'SITE') }}",
|
|
"ticket.index": "{{ route('ticket.index') }}",
|
|
"projects.index": "{{ route('projects.index') }}",
|
|
"sites.index": "{{ route('sites.index') }}",
|
|
"schedule.setCellContent": "{{ route('schedule.setCellContent') }}",
|
|
"schedule.eraseCellContent": "{{ route('schedule.eraseCellContent') }}"
|
|
};
|
|
</script>
|
|
@endpush
|
|
|
|
@push('customCss')
|
|
<style>
|
|
.support {
|
|
background-color: {{CellType::support()->value}} !important;
|
|
}
|
|
.rnd {
|
|
background-color: {{CellType::rnd()->value}} !important;
|
|
}
|
|
.dev {
|
|
background-color: {{CellType::dev()->value}} !important;
|
|
}
|
|
.projects {
|
|
background-color: {{CellType::projects()->value}} !important;
|
|
}
|
|
.management {
|
|
background-color: {{CellType::management()->value}} !important;
|
|
}
|
|
.absence, .Sat, .Sun {
|
|
background-color: {{CellType::absence()->value}} !important;
|
|
}
|
|
</style>
|
|
@endpush
|