@extends('backend.layouts.main') @section('content')

{{$subtitle}}

{{ Breadcrumbs::render('backend.products.image.index') }}
@if(auth()->guard('backend')->user()->can('products.add')) @endif
@include('backend.partials.msg')
@forelse($products as $key => $product) @empty @endforelse
# MS Số nhà Tên đường Phường/Xã Quận/Huyện Tỉnh/TP Ghi chú Ngang Dài DT Kết cấu Hướng Hình ảnh hiện trạng Hình ảnh giấy tờ chủ quyền Trạng thái Ngày tạo
{{++$start}} @if($_type=='callback') {{$product->id}} @elseif($_type=='owned') @if(auth()->guard('backend')->user()->can('products.owned.edit')) {{$product->id}} @endif @else @if(auth()->guard('backend')->user()->can('products.edit')) {{$product->id}} @else {{$product->id}} @endif @endif @if(auth()->guard('backend')->user()->account_position==\App\Models\CoreUsers::ACCOUNT_POSITION_SECRETARY&&$_type=='callback') {{$product->home_number?$product->home_number:'n/a'}} @else {{$product->home_number?$product->home_number:'n/a'}} @endif {{isset($product->street->name)?$product->street->name:'n/a'}} {{isset($product->ward->name)?str_replace('Phường','P.', $product->ward->name):'n/a'}} {{isset($product->district->name)?str_replace('Quận','Q.', $product->district->name):'n/a'}} {{isset($product->province->name)?str_replace('Thành phố','TP.',$product->province->name):'n/a'}} ... {{(float)$product->horizontal}} {{(float)$product->vertical}} {{(float)$product->area}} {{$product->home_structure_text}} @foreach($home_direction as $st) @if($st['id']==$product->home_direction) {{$st['name']}} @break @endif @endforeach
@if($product->images) @foreach($product->images as $v)
@endforeach @endif

@if($product->images_extra) @foreach($product->images_extra as $v)
@endforeach @endif

@foreach($censorship as $st) @if($st['id']==$product->status_censorship) {{$st['name']}} @break @endif @endforeach {{date('H:i d/m/y',strtotime($product->created_at))}}
-
{{--pagination--}}
{{ $products->links() }}
@include('backend.products.modal.callbackRequest') @include('backend.products.modal.callback') @include('backend.products.modal.viewNote') @include('backend.products.modal.merge') @endsection @section('style_top') @stop @section('script') @stop