@extends('layouts.user') @section('title') {{ __('contents.editRental') }} @endsection @section('style') @endsection @section('content') @php $village = ""; if(!empty($property->village)){ $village = \App\Models\Village::where('code',$property->village)->first(); } $commune = \App\Models\Commune::where('code',$property->commune)->first(); $district = \App\Models\District::where('code',$property->district)->first(); $province = \App\Models\Province::where('code',$property->province)->first(); $prop_info = json_decode($property->Info); $prop_utilites = json_decode($property->utilities); $prop_others = json_decode($property->others); $prop_variations = json_decode($property->variations); $variationData = $property->variations ? json_decode($property->variations, true) : []; $varitaions = json_decode($type->variations); $info = json_decode($type->info); $utilities = json_decode($type->utilities); $others = json_decode($type->other_terms); @endphp