show company create date

This commit is contained in:
omair saleh
2021-09-09 13:13:59 +08:00
parent d6915bc22f
commit ea08d1d998
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -35,6 +35,7 @@ class CompanyResource extends JsonResource
'company_module' => new CompanyModuleResource($companyModule),
'last_order' => new OrderResource($companyModule ? $companyModule->orders()->orderBy('id', 'DESC')->first(): null),
'identification' => new DocumentResource($this->documents->whereIn('document_type', DocumentType::IDENTIFICATION_DOCUMENTS)->first()),
'created_at' => $this->created_at
];
@@ -10,8 +10,9 @@
<div class="font-heading all-caps fs-11">{{this.item.name}}</div>
<div class="font-heading all-caps fs-11">CIEF/{{this.item.company_module.marking}}</div>
</div>
<div class="col-auto text-center">
<div class="col-auto">
<div class="font-heading all-caps fs-11">Registration Date</div>
<div class="font-heading all-caps fs-11">{{this.created_at}}</div>
</div>
<div class="col-auto text-center">
<div class="font-heading all-caps fs-11 p-l-15 p-r-15 p-t-5 p-b-5 bg-master-lighter btn-rounded"><i class="fa fa-circle m-r-10" :class="{'text-danger': item.status !==2, 'text-success': item.status ==2}"></i>{{this.item.status === 2 ? 'Active':'Inactive'}}</div>