@extends('vendors.layout') {{-- this style will be applied when the direction of language is right-to-left --}} @includeIf('backend.partials.rtl-style') @section('content')
{{ __('Project Types') }}
@includeIf('backend.partials.languages')
@if (count($types) == 0)

{{ __('NO PROJECT TYPES FOUND') . '!' }}

@else
@foreach ($types as $type) @php $typeContnent = $type ->projectTypeContnents() ->where('language_id', $language->id) ->first(); @endphp @endforeach
{{ __('Name') }} {{ __('Min Price') . ' (' . $settings->base_currency_text . ')' }} {{ __('Min Area (sqft)') }} {{ __('Total Unit') }} {{ __('Actions') }}
{{ strlen($typeContnent->name) > 50 ? mb_substr($typeContnent->name, 0, 50, 'UTF-8') . '...' : $typeContnent->name }} {{ symbolPrice($typeContnent->min_price) }} {{ $typeContnent->min_area }} {{ $typeContnent->unit }} id] ,['project_type_id',$type->id]])->first(); @endphp data-{{ $lang->code }}_name="{{ @$projectType->name }}" data-{{ $lang->code }}_min_area="{{ @$projectType->min_area }}" data-{{ $lang->code }}_max_area="{{ @$projectType->max_area }}" data-{{ $lang->code }}_min_price="{{ @$projectType->min_price }}" data-{{ $lang->code }}_max_price="{{ @$projectType->max_price }}" data-{{ $lang->code }}_unit="{{ @$projectType->unit }}" @endforeach>
@csrf
@endif
{{-- create modal --}} @include('vendors.project.type.create') {{-- edit modal --}} @include('vendors.project.type.edit') @endsection