@extends('layouts.admin') @section('title') {{ __('contents.newOtherRental') }} @endsection @section('style') @endsection @section('content') @php $village = ""; if(!empty($rental->village)){ $village = \App\Models\Village::where('code',$rental->village)->first(); } $commune = \App\Models\Commune::where('code',$rental->commune)->first(); $district = \App\Models\District::where('code',$rental->district)->first(); $province = \App\Models\Province::where('code',$rental->province)->first(); $prop_info = json_decode($rental->Info); $prop_others = json_decode($rental->others); @endphp

{{ __('contents.newOtherRental') }}

@csrf

Address & Location


{{ __('contents.overview') }}

@if(!empty($rental->gallery)) @php $gallery = json_decode($rental->gallery); $imgs = getMediaByType($rental->id,'image','rental'); $videos = getMediaByType($rental->id,'video','rental'); @endphp @endif

Photo

Upload file .jpg, .png
@if(!empty($info))

{{ __('contents.Rinfo') }}

@if(in_array("Body Type",$info))
@endif @if(in_array("Brand",$info))
@endif @if(in_array("Year of manufacture",$info))
@endif @if(in_array("Fuel",$info))
@endif @if(in_array("Transmission",$info))
@endif
@endif @if(!empty($others))

{{ __('contents.otherTerms') }}

@if(in_array("Minimum Deposit",$others))
{{ $settings->currency_symbol }}
@endif @if(in_array("Minimal Rental Contract",$others)) @if($contract_types->count() > 0)
@endif @endif
@endif
Cancel
@endsection @section('script') @endsection