Commit 4b8e5960 by Arpit Jain

Worked on cronn functinality created page according to locater

parent fb87116b
......@@ -7,6 +7,7 @@ use DB;
use Validator;
use App\Traits\Apitraits;
use App\Locater;
use App\Page;
use Illuminate\Support\Facades\Hash;
......@@ -28,13 +29,20 @@ class CronController extends Controller
$checkLocaterData = Locater::find($data['id']);
if(empty($checkLocaterData)){
$locater = new Locater;
$locater->locater_identity = $data['id'];
$locater->locater_code = $data['code'];
$locater->name = $data['name'];
$locater->created_by = 1;
$locater->save();
$page = new Page;
$page->locater_id = $locater->id;
$page->title = $data['name'];
$page->slug = str_slug($data['name']);
$page->created_by = 1;
$page->save();
}
......
......@@ -83,7 +83,11 @@
@foreach($data['records'] as $row)
<tr>
<td>{{$row->id}}</td>
<td>{{$row->locaterlists->locater_identity}}</td>
<td>
@if(!empty($row->locaterlists->locater_identity))
{{$row->locaterlists->locater_identity}}
@else
@endif</td>
<td>{{$row->offer_name}}</td>
<td><?php $imageshow = asset('storage/'.$row->offer_image); ?>
<img src="<?php echo $imageshow; ?>" />
......
......@@ -81,7 +81,11 @@
@foreach($records as $row)
<tr>
<td>{{$row->id}}</td>
<td>{{$row->locaterlists->locater_identity}}</td>
<td>
@if(!empty($row->locaterlists->locater_identity))
{{$row->locaterlists->locater_identity}}
@else
@endif</td>
<td>{{$row->title}}</td>
<td>{{date("F j, Y", strtotime($row->created_at))}}</td>
<td style="width:10%">
......
......@@ -75,9 +75,9 @@
<div class="col-12">
<div class="content">
<h2 class="title">About Global Desi</h2>
<h2 class="title">About {{ $locationDetailAPIdata['data']['name'] }}</h2>
<div class="content_paragraph">
<p>Founded in 1995 by Anita Dongre, Meena Sehra and Mukesh Sawlani, House of Anita Dongre Limited is one of India’s leading fashion houses today—a well-recognised, well-respected and well-loved name. The company owns and operates four brands each with their own distinct identity. AND with its line of chic contemporary western wear for women; Global Desi, a vibrant and free-spirited brand of boho-chic ensembles; Anita Dongre offering exquisite bridal couture and a prêt line for men & women along with Pinkcity, handcrafted jadau jewellery; and Grassroot by Anita Dongre which is a tribute to the handcrafted traditions of India, seeking to revive and sustain heirloom traditions and empower artisans in villages.</p>
<p>{{ $locationDetailAPIdata['data']['description'] }}</p>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment