@extends('dashboard.layout.layout') @section('content')

{{ $title }}

@can('blocks.update') @method('patch') @csrf @endcan
@php $blockDevices = $block ->devices() ->orderBy('sort_order') ->get() ->map(function ($device) { return ['ip' => $device->ip, 'port' => $device->port, 'model' => $device->model]; }) ->toArray(); $deviceRows = old('devices', $blockDevices ?: [['ip' => '', 'port' => '', 'model' => '']]); @endphp
@foreach ($deviceRows as $index => $device)
@endforeach
dontSendMessages === 1) checked @endif />
billing_paused == 1) checked @endif />
@if ($block->billing_paused == 1) {{ '(' . $block->billing_paused_at?->format('d.m.Y') . ')' }} @endif
@if (!$block->phone_billing_enabled_only_for_turned_off_users)
phone_billing_enabled == 1) checked @endif />
@endif
tag_billing_enabled == 1) checked @endif />
sms_service_billing_enabled == 1) checked @endif />
@if ($block->hasBarrierEntrance)
barrier_billing_enabled == 1) checked @endif />
@endif @if (!$block->phone_billing_enabled)
phone_billing_enabled_only_for_turned_off_users == 1) checked @endif />
@endif
@can('blocks.update') @endcan უკან

კომენტარის დამატება

@csrf
@if ($block->comments) @foreach ($block->comments as $comment)

{!! $comment->comment !!}

@endforeach @endif
@if ($block->description)
ძველი კომენტარი:

{{ $block->description }}

@endif
@endsection @push('scripts') @endpush