@extends('backend.layout') @section('content')
{{ __('Edit Project') }}
{{ __('Back') }} @php $dContent = App\Models\Project\ProjectContent::where('project_id', $project->id) ->where('language_id', $defaultLang->id) ->first(); $slug = !empty($dContent) ? $dContent->slug : ''; @endphp @if ($dContent) {{ __('Preview') }} @endif
    @foreach ($gallery_images as $item) @endforeach
    Ad Image
    @csrf

    @foreach ($floor_plan_images as $item) @endforeach
    Ad Image
    @csrf

    @csrf

    ...
    {{ __('Choose Image') }}
    {{-- @php $agents = App\Models\Agent::where('vendor_id', $project->vendor_id) ->select('id', 'username') ->where('status', 1) ->get(); @endphp

    {{ __('if you do not select any agent, then this property will be listed under Vendor') }}

    --}}
    @foreach ($languages as $language) @php $projectContent = App\Models\Project\ProjectContent::where( 'project_id', $project->id, ) ->where('language_id', $language->id) ->first(); @endphp
    @php $currLang = $language; @endphp @foreach ($languages as $language) @continue($language->id == $currLang->id)
    @endforeach
    @endforeach

    {{ __('Additional Features (Optional)') }}

    @if (count($specifications) > 0) @foreach ($specifications as $specification) @endforeach @else @endif
    {{ __('Label') }} {{ __('Value') }}
    @foreach ($languages as $language) @php $sp_content = App\Models\Project\SpacificationContent::where( [ ['language_id', $language->id], [ 'project_spacification_id', $specification->id, ], ], )->first(); @endphp
    @endforeach
    @foreach ($languages as $language) @php $sp_content = App\Models\Project\SpacificationContent::where( [ ['language_id', $language->id], [ 'project_spacification_id', $specification->id, ], ], )->first(); @endphp
    @endforeach
    @foreach ($languages as $language)
    @endforeach
    @foreach ($languages as $language)
    @endforeach
    @endsection @php $languages = App\Models\Language::get(); $labels = ''; $values = ''; foreach ($languages as $language) { $label_name = $language->code . '_label[]'; $value_name = $language->code . '_value[]'; if ($language->direction == 1) { $direction = 'form-group rtl text-right'; } else { $direction = 'form-group'; } $labels .= "
    "; $values .= "
    "; } @endphp @section('script') @endsection