{{ __('views.company.create.general') }}
@if($company)
@endif
@if($type === \App\Models\Collection\Company\Company::TYPE_STATIC)
@if($filepath)
{{-- --}}
{{-- --}}
{{-- --}}
@endif
@endif
@if($idProfile <= 4)
@endif
@if(!$filepath)
{{ __('views.company.create.filters') }}
{{--
{{json_encode($company->filters)}}--}}
@foreach($filters as $index => $filter)
@endforeach
@endif
@php
$columns = App\Enums\Company\FilterTableColumn::defaultColumns();
$columnsData = App\Enums\Company\FilterTableColumn::getColumnsForView($columns);
@endphp
@foreach($columnsData as $column)
| {{ $column['label'] }} |
@endforeach
@foreach($previewList as $list)
@foreach($columnsData as $column)
|
{{ $column['render']($list) }}
|
@endforeach
@endforeach
{{ __('views.company.create.schedule') }}
@if($idProfile <= 4)
@endif
@if($company)
@if($company->type === \App\Models\Collection\Company\Company::TYPE_STATIC)
{{-- Static Company Table --}}
| {{ __('views.company.create.action_column') }} |
{{ __('views.company.create.next_launch') }} |
{{ __('views.company.create.scheduled_start_date') }} |
{{ __('views.company.create.launches_column') }} |
{{ __('views.company.create.actions') }} |
@foreach($company->schedules as $schedule)
{{ $schedule->action->translated_title }}
{{ __('views.company.create.id_label') }} {{$schedule->id}}
|
@if($schedule->date)
@if($schedule->next_launch_at === 0)
{{ __('views.company.create.executed') }}
@else
@endif
@else
{{ __('views.company.create.manual_execution') }}
@endif
|
@if($schedule->date)
{{toDate($schedule->date)}}
@else
---
@endif
|
|
@if(!$schedule->date && !$readOnly)
@endif
@if(!$readOnly && $idProfile <= 4)
@endif
|
@endforeach
@else
{{-- Dynamic Company Table (Original) --}}
| {{ __('views.company.create.action_column') }} |
{{ __('views.company.create.next_launch') }} |
{{ __('views.company.create.weekdays') }} |
{{ __('views.company.create.hour') }} |
{{ __('views.company.create.minute') }} |
{{ __('views.company.create.launches_column') }} |
{{ __('views.company.create.task_status') }} |
{{ __('views.company.create.actions') }} |
@foreach($company->schedules as $schedule)
@php($isCompanyList = $schedule->action->code === \App\Models\Collection\Company\CompanyAction::COMPANY_LIST)
onclick="refreshDistributionSelectrs()"
{{ $schedule->action->translated_title }}
{{ __('views.company.create.id_label') }} {{$schedule->id}}
|
|
@foreach($this->getScheduleWeekdays($schedule->weekdays) as $weekend)
{{$weekend}}
@endforeach
|
{{$schedule->formatted_hour_label}}
|
{{$schedule->minute}}
|
|
@if($isCompanyList)
@if($schedule->user_distribution_completed)
{{ __('views.company.create.badge_active') }}
@else
{{ __('views.company.create.badge_pending') }}
@endif
@endif
|
@if(!$readOnly && $idProfile <= 4)
@endif
@if(!$readOnly && $idProfile <= 4 && $schedule->action->code === \App\Models\Collection\Company\CompanyAction::COMPANY_LIST && $schedule->company_schedule_subtype_id !== \App\Models\Collection\Company\CompanyScheduleSubtype::NOT_USER_SCHEDULE_TYPE)
@endif
@if(!$readOnly && $idProfile <= 4)
@endif
|
@endforeach
@endif
@endif