@extends('layouts.app') @section('content')

{{ $branch->code }} — {{ $branch->name }}

@can('branches.update') {{ __('common.edit') }} @endcan @can('services.create') {{ __('services.create') }} @endcan {{ __('customers.parent') }}

{{ __('customers.parent') }}: {{ $branch->parent?->name }}

{{ __('common.status') }}: {{ $branch->status?->label() }}

{{ __('common.address') }}: {{ $branch->address }} {{ $branch->district }} {{ $branch->city }}

@if ($branch->latitude !== null && $branch->longitude !== null)

{{ __('customers.latitude') }} / {{ __('customers.longitude') }}: {{ $branch->latitude }}, {{ $branch->longitude }}

@endif

{{ __('common.phone') }}: {{ $branch->phone }}

{{ __('customers.services') }}

@foreach ($branch->branchServices as $service) @endforeach
{{ __('services.number') }} {{ __('services.subject') }} {{ __('common.status') }}
{{ $service->number }} {{ $service->title }} {{ $service->status?->label() }}
@can('branches.archive')
@csrf @method('DELETE') {{ __('common.delete') }}
@endcan @endsection