@section('header', __('Supplier services') . ' - ' . $this->supplierId->company->translations->first()?->name)
{{ __('Sign Date') }}: {{ $this->supplierId->sign_date }}
{{ __('Description') }}: {{ $this->supplierId->description }}
{{ __('Expiration Date') }}: {{ $this->supplierId->expiration_date }}
{{ __('Order Date') }}: {{ $this->supplierId->order_date }}
{{ __('Risk Date') }}: {{ $this->supplierId->risk_date }}
{{ $this->contractSupplierId ? __('Update Services in Supplier Contract') : __('Add Services to Supplier Contract') }}
@if (is_null($this->contractSupplierId))
{{ __('Service name') }}
@endif @if ($selectedService)
{{ __('Price') }}
{{ __('Units of measurement') }}
{{ __('Currency Code') }}
{{ __('Begin Date') }}
{{ __('Expiration Date') }}
@if ($copyModal != true)
@foreach ($selectedAttributes as $index => $selectedAttribute)
{{ !empty($selectedAttributes[$index]['attribute_id']) ? __('Selected Attribute') : __('Select Attribute') }} @if (!empty($selectedAttributes[$index]['attribute_id'])) @php $selectedAttribute = $this->availableAttributes->firstWhere( 'id', $selectedAttributes[$index]['attribute_id'], ); $attributeName = $selectedAttribute?->translations->first()?->name ?? 'Selected Attribute'; @endphp {{ $attributeName }} @else @endif
@if (!empty($selectedAttributes[$index]['attribute_id']) && $selectedAttributes[$index]['attribute_id'] !== '0')
{{ __('Select Attribute Value') }}
@endif
@endforeach
@endif @if ($this->getFilteredAttributes(count($this->selectedAttributes))->isNotEmpty())
@endif
@endif @if (session('error')) @endif
{{ __('Close') }} {{ $this->contractSupplierId ? __('Apply changes') : __('Add') }}
{{-- @dd( $this->supplierId->company->translations->first()?->name) --}}
@foreach ($supplierContractServices as $service) @endforeach
{{ __('Price') }} {{ __('Units of measurement') }} {{ __('Begin Date') }} {{ __('Expiration Date') }} {{ __('Services') }}
{{ $loop->iteration }} @if ($service->deleted_at) @if (auth()->user()->isInLeadership() && \Carbon\Carbon::parse($service->expiration_date)->isFuture()) @else {{__("Delete entry")}} @endif @else @if (auth()->user()->isInLeadership() && \Carbon\Carbon::parse($service->expiration_date)->isFuture()) @else @can('deleteService', $service) {{__("Delete entry")}} @endcan @endif @endif @if (!$service->deleted_at) @can('editService', $service) @endcan @endif
{{ $service->price }} {{ $service->currency->symbol }}
{{ $service->unitMeasurement?->translations->first()?->name }} {{ $service->begin_date }} {{ $service->expiration_date }} {!! getAttributeValues($service) !!}
{{ __('Delete record') }} @if (session()->has('error')) {{ session('error') }} @endif {{ __('Are you sure you would like to delete this record?') }} {{ __('Close') }} {{ __('Delete') }}