@extends('dashboard.layouts.app')
@section('title', trans('admin.branches.title') . ' ' . $branch->name['ru'] . ' - ')

@section('speedbar')
    <div class="content-header row">
        <div class="content-header-left col-md-9 col-12 mb-2">
            <div class="row breadcrumbs-top">
                <div class="col-12">
                    <h2 class="content-header-title float-left mb-0">@lang('admin.branches.title')</h2>
                    <div class="breadcrumb-wrapper col-12">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item "><a href="{{ route('dashboard') }}">@lang('admin.home')</a>
                            </li>
                            <li class="breadcrumb-item ">
                                <a href="{{ route('dashboard.branches') }}">@lang('admin.branches.title')</a>
                            </li>
                            <li class="breadcrumb-item active">
                                {{ $branch->name['ru'] }}
                            </li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

@section('content')
    <div class="row" id="table-head">
        <div class="col-12">
            <div class="card">
                <div class="card-content">
                    <div class="card-header">
                        <h1>{{ $branch->name['ru'] }}</h1>
                    </div>
                    <div class="card-body">
                        <p><b>@lang('admin.latitude'):</b> {{ $branch->getLat() }}</p>
                        <p><b>@lang('admin.longitude'):</b> {{ $branch->getLong() }}</p>
                        <p><b>@lang('admin.branches.address'):</b> {{ $branch->address['ru'] }}</p>
                        <p><b>@lang('admin.branches.schedule'):</b> {{ $branch->schedule['ru'] }}</p>
                    </div>

                    <div class="card-footer">
                        <div class="row">
                            <a href="{{ route('dashboard.branches.update', $branch->id) }}" class="btn btn-icon btn-primary"
                                data-toggle="tooltip" data-placement="top" title=""
                                data-original-title="@lang('admin.edit')">
                                <i class="fa fa-edit"></i> @lang('admin.edit')
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
