@extends('layouts.main') @section('content') @include('partials.breadcrumb', ['breadcrumbTitle' => 'Edit Location', 'parentUrl' => '/location', 'parentTitle' => 'Locations'])
{{csrf_field()}}
@include('partials.error') @include('partials.error-message') @if ($location->manually_created == 0)
@include('partials.dropdowns.room-type', ['selected_id' => $location->location_type_id])
@include('partials.dropdowns.status', ['selected_id' => $location->status])
@elseif ($location->manually_created == 1)
@include('partials.dropdowns.room-type', ['selected_id' => $location->location_type_id])
@include('partials.dropdowns.site-code', ['selected_id' => $location->site_code_id])
@include('partials.dropdowns.country-locations', ['selected_id' => optional($location->siteCode)->country_id])
@include('partials.dropdowns.status', ['selected_id' => $location->status])
@include('partials.dropdowns.floor', ['selected_id' => $location->floor])
@include('partials.dropdowns.region-locations', ['selected_id' => optional($location->siteCode)->region_id])
@endif

Assets in Location ({{$location->assets_count ? $location->assets_count : 0}} assets)

@include('location.assets-in-location')
@stop @section('help-links') @include('help.help-links',['helpLink'=>config('help-links.help_links.locations'),'helpTitle'=>config('help-links.help_titles.locations')]) @endsection @section('after_scripts') @include('assets.partials.scripts.common') @include('reports.scripts.common') @include('reports.scripts.datatable') @include('location.partials.scripts.detail-script') @stop