Skip to content

Instantly share code, notes, and snippets.

View thanhtutoo's full-sized avatar
🎯
Focusing

Than Htut Oo thanhtutoo

🎯
Focusing
View GitHub Profile
@thanhtutoo
thanhtutoo / index.blade.php
Created June 24, 2018 16:48
please replace this code in " jobseekers/index.blade.php " and pull from server for khin request from slack.
@extends('layouts.dashboard')
@section('section')
<br><br>
<style type="text/css">
th.fb-name{
width: 100px;
}
.close-wrapper{
@thanhtutoo
thanhtutoo / JobseekerController.php
Created June 12, 2018 16:02
please put under " public function downloadExcel($type) " function
private function transformCollection($collection){
return array_map([$this, 'transform'], $collection->toArray());
}
private function transform($collection){
return [
// 'Full Name' => $collection['jobseeker_id']. ' '. $collection['fullname']. ' '. $collection['date'],
// 'Phone No' => $collection['date'],
@thanhtutoo
thanhtutoo / JobseekerController.php
Created June 9, 2018 18:37
please replace downloadExcel function with the following line of codes.
//for download excel
public function downloadExcel($type)
{
ini_set('max_execution_time', 3000);
set_time_limit ( 3000 );
$user = new Jobseeker;
$data = $user->query();
try{
$filedate = str_replace(' ', '_', Carbon::now());
return Excel::create('UserList'.$filedate, function($excel) use($data){