@extends('backend.layouts.main') @section('content')
# | 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 | Giá | Giá m2 | Hiện trạng | 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 | {{$product->price.' '.$product->price_type_name}} | {{number_format($product->price_per_square_meters)}} | @foreach($status as $st) @if($st['id']==$product->status) {{$st['name']}} @break @endif @endforeach | @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))}} | |
- |