@extends('layouts.admin.app') @section('title', translate('Assign Blocks')) @push('css_or_js') @endpush @section('content')

{{ translate('assign_blocks') }}

{{ translate('vehicle_detail') }}
{{ translate('blocks_section') }}
@csrf @foreach ($area_name as $area)
{{ $area->name }} {{ translate('blocks') }} :
@foreach (\App\Models\Block::where(['status' => 1, 'name' => $area->name])->orderBy('number')->get() as $block)
id, $assigned_block_array) ? 'checked' : '' }} value="{{ $block->id }}" class="form-check-input select-all-associate" id="{{ $block->id }}">
@endforeach
@endforeach
@endsection @push('script') @endpush