Current File : //home/tradevaly/demo.tradevaly.com.bd/resources/views/backend/package-leads/show.blade.php |
@extends('layouts.backend')
@section('content')
<!-- Container Fluid-->
<div class="row">
<div class="col-lg-12">
<!-- Form Basic -->
<div class="card mb-4">
<div class="card-header card-header-modify py-3 d-flex flex-row align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-heading-bar">Package Details</h6>
<a href="{{route('package-banner-ads.index')}}" class="btn btn-default-index btn-sm text-right "><i class="fas fa-arrow-alt-circle-left"></i> Back</a>
</div>
<div class="card-body">
<table class="table table-bordered">
<tr>
<th>Package Name</th>
<td>{{ !empty($packageDetail[0]['name']) ? $packageDetail[0]['name'] : '' }}</td>
<th>Package Type</th>
<td>{{ ($packageDetail[0]['type'] == 0 ) ? 'Free' : 'Paid' }}</td>
</tr>
</table>
<br/>
<div class="row">
<div class="col-lg-12">
<!-- Form Basic -->
<div class="card mb-4">
<div class="card-header card-header-modify py-3 d-flex flex-row align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-heading-bar">Price & Others Info</h6>
<a class="btn btn-default-index btn-sm text-right show-modal-form" href="#" data-toggle="tooltip" data-placement="top"><i class="fas fa-plus-circle" aria-hidden="true"></i> Add Details</a>
</div>
<div class="card-body">
<table class="table table-bordered">
@if ( isset($packageDetail[0]['package_details']) && !empty($packageDetail[0]['package_details']) )
@php $count = 0; @endphp
<tr>
<th>Sl No.</th>
<th>Duration</th>
<th>Price</th>
<th>Action</th>
</tr>
@foreach($packageDetail[0]['package_details'] as $val)
<tr>
<td>{{ ++$count }}</td>
<td>{{ !empty( $duration['dayWithText'][$val['duration_id']]) ? $duration['dayWithText'][$val['duration_id']] : '' }}</td>
<td>{{ !empty($val['price']) ? $val['price']. ' Tk.' : '' }}</td>
<td>
<a class="btn btn-primary btn-sm" href="{{ route('package-lead-details.edit',$val['id']) }}" data-toggle="tooltip" data-placement="left" title="Edit"><i class="fas fa-edit"></i></a>
@if($val['status'] == 1)
<a class="btn btn-danger btn-sm show-modal" href="#" data-toggle="tooltip" data-placement="top" title="Inactive" value-id="{{$val['id']}}" value-title="Inactive" message= "Are you sure? You want to inactive ?" method="get" action="package-lead-details-active-inactive" ><i class="fa fa-times" aria-hidden="true"></i></a>
@else
<a class="btn btn-success btn-sm show-modal" href="#" data-toggle="tooltip" data-placement="top" title="Active" value-id="{{$val['id']}}" value-title="Active" message="Are you sure? You want to active ?" method="get" action="package-lead-details-active-inactive"><i class="fa fa-check-circle" aria-hidden="true"></i></a>
@endif
<a class="btn btn-danger btn-sm show-modal" href="#" data-toggle="tooltip" data-placement="top" title="Delete" value-id="{{ $val['id'] }}" value-title="Delete" message= "Are you sure? You want to delete ?" method="Post" action="package-lead-details" ><i class="fa fa-trash fa-lg" aria-hidden="true"></i></a>
</td>
</tr>
@endforeach
@endif
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--Row-->
<!-- start modal form only -->
<div class="modal fade" id="formModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" >
<div class="modal-dialog" role="document" style="max-width:80%">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Add New Details</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
{!! Form::open(array('route' => 'package-lead-details.store','method'=>'POST')) !!}
<div class="row">
<div class="form-group col-sm-6">
<label for="exampleInputEmail1">Duration<span style="color: red"> *</span></label>
<div>
{!! Form::hidden('package_lead_id', $packageDetail[0]['id'], array()) !!}
{!! Form::select('duration_id', [''=>'Select Duration']+$duration['dayWithText'],[], array('id' => '', 'class' => 'form-control')) !!}
@error('duration_id')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('duration_id') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-6">
<label for="exampleInputEmail1"> Price<span style="color: red"> *</span></label>
<div>
{!! Form::text('price', null, array( 'placeholder' => 'Enter price', 'id' => 'name', 'class' => 'form-control ', 'required' => '')) !!}
@error('price')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('price') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-12">
<label for="exampleInputEmail1"> Description<span style="color: red"> *</span></label>
<div>
{!! Form::text('description', null, array( 'placeholder' => '', 'id' => 'description', 'class' => 'content', 'required' => '')) !!}
@error('description')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('description') }}</strong>
</span>
@enderror
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-success">Submit</button>
</div>
{!! Form::close() !!}
</div>
</div>
</div>
<!-- end modal form only -->
@endsection